Пример #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);
        }
Пример #2
0
 public int IndexOf(ViewConfigurationProperty entity)
 {
     return(base.IndexOf(entity));
 }
Пример #3
0
 public void Insert(int index, ViewConfigurationProperty entity)
 {
     base.Insert(index, entity);
 }
Пример #4
0
 public void Add(ViewConfigurationProperty entity)
 {
     base.Add(entity);
 }
Пример #5
0
 public bool Contains(ViewConfigurationProperty entity)
 {
     return(base.Contains(entity));
 }
Пример #6
0
 public int IndexOf(ViewConfigurationProperty entity)
 {
     return base.IndexOf(entity);
 }
Пример #7
0
 public bool Remove(ViewConfigurationProperty entity)
 {
     return(base.Remove(entity));
 }
Пример #8
0
 public bool Contains(ViewConfigurationProperty entity)
 {
     return base.Contains(entity);
 }
Пример #9
0
 public void Add(ViewConfigurationProperty entity)
 {
     base.Add(entity);
 }
Пример #10
0
 public bool Remove(ViewConfigurationProperty entity)
 {
     return base.Remove(entity);
 }
Пример #11
0
 public void Insert(int index, ViewConfigurationProperty entity)
 {
     base.Insert(index, entity);
 }
Пример #12
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;
        }