예제 #1
0
        public virtual ViewConfigurationModel GetBy(ViewConfigurationModelNameCriteria criteria)
        {
            Type entityType = ClientEntities.Find(criteria.EntityType).EntityType;

            var evm = UIModel.Views.Create(entityType, criteria.ViewName);

            var m = new ViewConfigurationModel();

            m.Read(evm);
            (m as IDirtyAware).MarkSaved();

            return(m);
        }
예제 #2
0
        private EntityList DA_GetByEntity(Type entityType, string viewName)
        {
            var list = this.NewList();

            var evm = UIModel.Views.Create(entityType, viewName);

            var m = new ViewConfigurationModel();
            list.Add(m);
            m.Read(evm);
            m.MarkSaved();

            return list;
        }
예제 #3
0
        public virtual ViewConfigurationModelList GetByEntity(Type entityType, string viewName)
        {
            var list = this.NewList();

            var evm = UIModel.Views.Create(entityType, viewName);

            var m = new ViewConfigurationModel();

            list.Add(m);
            m.Read(evm);
            (m as IDirtyAware).MarkSaved();

            return(list);
        }
예제 #4
0
        private EntityList DA_GetByEntity(Type entityType, string viewName)
        {
            var list = this.NewList();

            var evm = UIModel.Views.Create(entityType, viewName);

            var m = new ViewConfigurationModel();
            list.Add(m);
            m.Read(evm);
            m.MarkSaved();

            return list;
        }