C# Class System.Data.Entity.Internal.CodeFirstCachedMetadataWorkspace

Implements ICachedMetadataWorkspace for a Code First model.
Inheritance: ICachedMetadataWorkspace
Show file Open project: aspnet/EntityFramework6

Public Methods

Method Description
Create ( System.Data.Entity.Core.Metadata.Edm.DbDatabaseMapping databaseMapping ) : CodeFirstCachedMetadataWorkspace
Create ( System.Data.Entity.Core.Mapping.StorageMappingItemCollection mappingItemCollection, System.Data.Entity.Infrastructure.DbProviderInfo providerInfo ) : CodeFirstCachedMetadataWorkspace
GetMetadataWorkspace ( DbConnection connection ) : MetadataWorkspace

Gets the MetadataWorkspace. If the workspace is not compatible with the provider manifest obtained from the given connection then an exception is thrown.

Private Methods

Method Description
CodeFirstCachedMetadataWorkspace ( MetadataWorkspace metadataWorkspace, IEnumerable assemblies, System.Data.Entity.Infrastructure.DbProviderInfo providerInfo, string defaultContainerName ) : System.Collections.Generic

Method Details

Create() public static method

public static Create ( System.Data.Entity.Core.Metadata.Edm.DbDatabaseMapping databaseMapping ) : CodeFirstCachedMetadataWorkspace
databaseMapping System.Data.Entity.Core.Metadata.Edm.DbDatabaseMapping
return CodeFirstCachedMetadataWorkspace

Create() public static method

public static Create ( System.Data.Entity.Core.Mapping.StorageMappingItemCollection mappingItemCollection, System.Data.Entity.Infrastructure.DbProviderInfo providerInfo ) : CodeFirstCachedMetadataWorkspace
mappingItemCollection System.Data.Entity.Core.Mapping.StorageMappingItemCollection
providerInfo System.Data.Entity.Infrastructure.DbProviderInfo
return CodeFirstCachedMetadataWorkspace

GetMetadataWorkspace() public method

Gets the MetadataWorkspace. If the workspace is not compatible with the provider manifest obtained from the given connection then an exception is thrown.
public GetMetadataWorkspace ( DbConnection connection ) : MetadataWorkspace
connection System.Data.Common.DbConnection The connection to use to create or check SSDL provider info.
return MetadataWorkspace