Пример #1
0
        public void LoadCollection(List <EntitySnapshot> snapshots)
        {
            BudgetModel model       = _parent.Model;
            var         repo        = model.FindSubEntityRepository <T>();
            var         subEntities = repo.CreateEntitiesFromSnapshot(snapshots);

            AttachSubEntities(subEntities);
        }
Пример #2
0
        void ISubEntityCollection.LoadCollection()
        {
            BudgetModel model       = _parent.Model;
            var         repo        = model.FindSubEntityRepository <T>();
            var         subEntities = repo.GetEntitiesByParent(_parent.GetType().Name, _parent.EntityID);

            AttachSubEntities(subEntities);
        }