/// <summary> /// Creates a model for the given EDM metadata model. /// </summary> /// <param name="model"> The EDM metadata model. </param> internal DbCompiledModel(DbModel model) { DebugCheck.NotNull(model); _workspace = new CodeFirstCachedMetadataWorkspace(model.DatabaseMapping); _cachedModelBuilder = model.CachedModelBuilder; }
internal DbCompiledModel(CodeFirstCachedMetadataWorkspace workspace, string defaultSchema) { _workspace = workspace; _defaultSchema = defaultSchema; }
internal DbCompiledModel(CodeFirstCachedMetadataWorkspace workspace, DbModelBuilder cachedModelBuilder) { _workspace = workspace; _cachedModelBuilder = cachedModelBuilder; _defaultSchema = cachedModelBuilder.ModelConfiguration.DefaultSchema; }
internal DbCompiledModel(DbModel model) { this._workspace = (ICachedMetadataWorkspace) new CodeFirstCachedMetadataWorkspace(model.DatabaseMapping); this._cachedModelBuilder = model.CachedModelBuilder; }