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

Implements ICachedMetadataWorkspace for a Code First model.
Inheritance: ICachedMetadataWorkspace
Afficher le fichier Open project: aspnet/EntityFramework6

Méthodes publiques

Méthode 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

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

Method Details

Create() public static méthode

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

Create() public static méthode

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
Résultat CodeFirstCachedMetadataWorkspace

GetMetadataWorkspace() public méthode

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.
Résultat MetadataWorkspace