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();
        }
        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;
 }