Exemple #1
0
        public EntityViewFactory(CodeGenEscaper codeGenEscaper, EntityType entityType)
        {
            this.codeGenEscaper = codeGenEscaper;
            this.entityType     = entityType;

            this.SetEntityConstructorViews();
            this.SetEntityEntityViews();
            this.SetEntityNavigationViews();
        }
        public MappingViewFactory(
            CodeGenEscaper codeGenEscaper,
            EntityType entityType,
            EdmMapping edmMapping)
        {
            this.codeGenEscaper = codeGenEscaper;
            this.entityType     = entityType;
            this.edmMapping     = edmMapping;

            this.SetMappingKeyView();
            this.SetMappingPropertyViews();
            this.SetMappingRelationshipForeignKeyViews();
            this.SetMappingManyToManys();
        }
Exemple #3
0
        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();
        }
 public MappingRelationshipForeignKeyViewFactory(CodeGenEscaper codeGenEscaper)
 {
     this.codeGenEscaper = codeGenEscaper;
 }
Exemple #5
0
 public MappingRelationshipForeignKeyMatcherHasOptional(CodeGenEscaper codeGenEscaper)
 {
     this.codeGenEscaper = codeGenEscaper;
 }
 public EntityConstructorViewFactory(CodeGenEscaper codeGenEscaper)
 {
     this.codeGenEscaper = codeGenEscaper;
 }
Exemple #7
0
 public MappingPropertyViewFactory(CodeGenEscaper codeGenEscaper)
 {
     this.codeGenEscaper = codeGenEscaper;
 }
Exemple #8
0
 public EntityEntityViewFactory(CodeGenEscaper codeGenEscaper)
 {
     this.codeGenEscaper = codeGenEscaper;
 }
 public EntityNavigationViewFactory(CodeGenEscaper codeGenEscaper)
 {
     this.codeGenEscaper = codeGenEscaper;
 }
Exemple #10
0
 public MappingRelationshipForeignKeyMatcherWithMany(CodeGenEscaper codeGenEscaper)
 {
     this.codeGenEscaper = codeGenEscaper;
 }