public void LoadCollection(List <EntitySnapshot> snapshots) { BudgetModel model = _parent.Model; var repo = model.FindSubEntityRepository <T>(); var subEntities = repo.CreateEntitiesFromSnapshot(snapshots); AttachSubEntities(subEntities); }
void ISubEntityCollection.LoadCollection() { BudgetModel model = _parent.Model; var repo = model.FindSubEntityRepository <T>(); var subEntities = repo.GetEntitiesByParent(_parent.GetType().Name, _parent.EntityID); AttachSubEntities(subEntities); }