Пример #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;
        }