コード例 #1
0
ファイル: MappingViewFactory.cs プロジェクト: microsoft/Sloos
        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();
        }
コード例 #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);
        }
コード例 #3
0
 public MappingColumnNameViewFactory(EdmMapping edmMapping)
 {
     this.edmMapping = edmMapping;
 }
コード例 #4
0
 public MappingManyToManyViewFactory(EdmMapping edmMapping)
 {
     this.edmMapping = edmMapping;
 }