コード例 #1
0
        private static void UpdatePropertyMapping(
            DbDatabaseMapping databaseMapping,
            IEnumerable<EntitySet> entitySets,
            Dictionary<EdmProperty, IList<ColumnMappingBuilder>> columnMappingIndex,
            ColumnMappingBuilder propertyMappingBuilder,
            EntityType fromTable,
            EntityType toTable,
            bool useExisting)
        {
            propertyMappingBuilder.ColumnProperty
                = TableOperations.CopyColumnAndAnyConstraints(
                    databaseMapping.Database, fromTable, toTable, propertyMappingBuilder.ColumnProperty, GetPropertyPathMatcher(columnMappingIndex, propertyMappingBuilder), useExisting);

            propertyMappingBuilder.SyncNullabilityCSSpace(databaseMapping, entitySets, toTable);
        }
コード例 #2
0
        private static void UpdatePropertyMapping(
            EdmModel database,
            ColumnMappingBuilder propertyMappingBuilder,
            EntityType fromTable,
            EntityType toTable,
            bool useExisting)
        {
            propertyMappingBuilder.ColumnProperty
                = TableOperations.CopyColumnAndAnyConstraints(
                    database, fromTable, toTable, propertyMappingBuilder.ColumnProperty, useExisting, false);

            propertyMappingBuilder.SyncNullabilityCSSpace();
        }