public SelectManyModelCollection(IModelCollection <TSource> source, Func <TSource, IModelCollection <TCollection> > collectionSelector, Func <TSource, TCollection, TResult> resultSelector)
 {
     this.source             = source;
     this.collectionSelector = collectionSelector;
     this.resultSelector     = resultSelector;
     collectionChangedEvent  = new ModelCollectionChangedEvent <TResult>();
 }
 public TopLevelTypeDefinitionModelCollection(IEntityModelContext context)
 {
     if (context == null)
     {
         throw new ArgumentNullException("context");
     }
     this.context           = context;
     collectionChangedEvent = new ModelCollectionChangedEvent <ITypeDefinitionModel>();
 }
Ejemplo n.º 3
0
 public NestedTypeDefinitionModelCollection(IEntityModelContext context)
 {
     this.context           = context;
     collectionChangedEvent = new ModelCollectionChangedEvent <ITypeDefinitionModel>();
 }
 public MemberCollection(TypeDefinitionModel parent)
 {
     this.parent            = parent;
     collectionChangedEvent = new ModelCollectionChangedEvent <MemberModel>();
 }