public ContextViewFactory(string name, EntityNamespace entityNamespace, IEnumerable <EntityType> entityTypes) { this.name = name; this.entityNamespace = entityNamespace; this.entityTypes = entityTypes; this.factory = new ContextEntityViewFactory(); }
public ReverseFactory( IGeneratorFactory generatorFactory, EntityNamespace entityNamespace, string contextName) { this.generatorFactory = generatorFactory; this.entityNamespace = entityNamespace; this.contextName = contextName; this.codeGenEscaper = new CodeGenEscaper(); this.ConceptualEntityTypes = this.generatorFactory.ConceptualItemCollection .OfType <EntityContainer>() .Single() .BaseEntitySets .OfType <EntitySet>() .Select(x => x.ElementType) .ToArray(); this.StoreEntityTypes = this.ConceptualEntityTypes .Select(x => this.generatorFactory.EdmMapping.EntityMappings[x].Item1.ElementType) .ToArray(); }