Esempio 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);
        }
Esempio n. 2
0
 public int IndexOf(ViewConfigurationProperty entity)
 {
     return(base.IndexOf(entity));
 }
Esempio n. 3
0
 public void Insert(int index, ViewConfigurationProperty entity)
 {
     base.Insert(index, entity);
 }
Esempio n. 4
0
 public void Add(ViewConfigurationProperty entity)
 {
     base.Add(entity);
 }
Esempio n. 5
0
 public bool Contains(ViewConfigurationProperty entity)
 {
     return(base.Contains(entity));
 }
 public int IndexOf(ViewConfigurationProperty entity)
 {
     return base.IndexOf(entity);
 }
Esempio n. 7
0
 public bool Remove(ViewConfigurationProperty entity)
 {
     return(base.Remove(entity));
 }
 public bool Contains(ViewConfigurationProperty entity)
 {
     return base.Contains(entity);
 }
 public void Add(ViewConfigurationProperty entity)
 {
     base.Add(entity);
 }
 public bool Remove(ViewConfigurationProperty entity)
 {
     return base.Remove(entity);
 }
 public void Insert(int index, ViewConfigurationProperty entity)
 {
     base.Insert(index, entity);
 }
Esempio n. 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;
        }