Beispiel #1
0
        protected override IEnumerable <object> MakeItemsCollection()
        {
            string collection = null;

            if (IsListedChilds)
            {
                // show first child enities
                collection = EntityMapper.ChildrenCollectionName(Entity, 0);
            }
            else
            {
                collection = EntityMapper.CollectionName(Entity);
            }

            return(ec.GetCollection(collection));
        }