コード例 #1
0
        /// <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;
        }
コード例 #2
0
 internal DbCompiledModel(CodeFirstCachedMetadataWorkspace workspace, string defaultSchema)
 {
     _workspace     = workspace;
     _defaultSchema = defaultSchema;
 }
コード例 #3
0
 internal DbCompiledModel(CodeFirstCachedMetadataWorkspace workspace, DbModelBuilder cachedModelBuilder)
 {
     _workspace          = workspace;
     _cachedModelBuilder = cachedModelBuilder;
     _defaultSchema      = cachedModelBuilder.ModelConfiguration.DefaultSchema;
 }
コード例 #4
0
 internal DbCompiledModel(DbModel model)
 {
     this._workspace          = (ICachedMetadataWorkspace) new CodeFirstCachedMetadataWorkspace(model.DatabaseMapping);
     this._cachedModelBuilder = model.CachedModelBuilder;
 }