Ejemplo n.º 1
0
        public override EntityList GetByParentId(object pId, PagingInfo paging = null, EagerLoadOptions eagerLoad = null)
        {
            int parentId = (int)pId;

            var list = new ViewConfigurationPropertyList();

            var evm = ViewConfigurationModel.GetEVMByParentId(parentId);

            foreach (var p in evm.OrderedEntityProperties())
            {
                var m = new ViewConfigurationProperty();

                m.Id = RafyEnvironment.NewLocalId();
                m.ViewConfigurationModelId = parentId;
                m.Name        = p.Name;
                m.Label       = p.Label ?? p.Name;
                m.ShowInWhere = (PropertyShowInWhere)p.ShowInWhere;
                m.OrderNo     = p.OrderNo;

                list.Add(m);
            }

            return(list);
        }
Ejemplo n.º 2
0
        public override EntityList GetByParentId(object pId, PagingInfo paging = null, EagerLoadOptions eagerLoad = null)
        {
            int parentId = (int)pId;

            var list = new ViewConfigurationPropertyList();

            var evm = ViewConfigurationModel.GetEVMByParentId(parentId);

            foreach (var p in evm.OrderedEntityProperties())
            {
                var m = new ViewConfigurationProperty();

                m.Id = RafyEnvironment.NewLocalId();
                m.ViewConfigurationModelId = parentId;
                m.Name = p.Name;
                m.Label = p.Label ?? p.Name;
                m.ShowInWhere = (PropertyShowInWhere)p.ShowInWhere;
                m.OrderNo = p.OrderNo;

                list.Add(m);
            }

            return list;
        }