Ejemplo n.º 1
0
        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();
        }
Ejemplo n.º 2
0
        private static EdmMapping LoadEdmMapping(
            EntityModelSchemaGenerator entityModelSchemaGenerator,
            EdmItemCollection conceptualItemCollection,
            StoreItemCollection storeItemCollection)
        {
            var xmlReader = RegurgitatingXmlWriter.Regurgitate(
                entityModelSchemaGenerator.WriteStorageMapping);

            var edmMapping = new EdmMapping(
                conceptualItemCollection,
                storeItemCollection,
                xmlReader);

            return(edmMapping);
        }
 public MappingColumnNameViewFactory(EdmMapping edmMapping)
 {
     this.edmMapping = edmMapping;
 }
 public MappingManyToManyViewFactory(EdmMapping edmMapping)
 {
     this.edmMapping = edmMapping;
 }