共用方式為


ModelSource 建構函式

定義

多載

ModelSource(ModelSourceDependencies)

建立新的 ModelSource 執行個體。

ModelSource(IDbSetFinder, ICoreConventionSetBuilder, IModelCustomizer, IModelCacheKeyFactory)

此 API 支援 Entity Framework Core 基礎結構,而且不適合直接從您的程式碼使用。 此 API 可能會在未來的版本中變更或移除。

ModelSource(ModelSourceDependencies)

來源:
ModelSource.cs
來源:
ModelSource.cs
來源:
ModelSource.cs
來源:
ModelSource.cs
來源:
ModelSource.cs
來源:
ModelSource.cs
來源:
ModelSource.cs
來源:
ModelSource.cs
來源:
ModelSource.cs

建立新的 ModelSource 執行個體。

public ModelSource (Microsoft.EntityFrameworkCore.Infrastructure.ModelSourceDependencies dependencies);
new Microsoft.EntityFrameworkCore.Infrastructure.ModelSource : Microsoft.EntityFrameworkCore.Infrastructure.ModelSourceDependencies -> Microsoft.EntityFrameworkCore.Infrastructure.ModelSource
Public Sub New (dependencies As ModelSourceDependencies)

參數

dependencies
ModelSourceDependencies

要使用的相依性。

適用於

ModelSource(IDbSetFinder, ICoreConventionSetBuilder, IModelCustomizer, IModelCacheKeyFactory)

此 API 支援 Entity Framework Core 基礎結構,而且不適合直接從您的程式碼使用。 此 API 可能會在未來的版本中變更或移除。

protected ModelSource (Microsoft.EntityFrameworkCore.Internal.IDbSetFinder setFinder, Microsoft.EntityFrameworkCore.Metadata.Conventions.Internal.ICoreConventionSetBuilder coreConventionSetBuilder, Microsoft.EntityFrameworkCore.Infrastructure.IModelCustomizer modelCustomizer, Microsoft.EntityFrameworkCore.Infrastructure.IModelCacheKeyFactory modelCacheKeyFactory);
new Microsoft.EntityFrameworkCore.Infrastructure.ModelSource : Microsoft.EntityFrameworkCore.Internal.IDbSetFinder * Microsoft.EntityFrameworkCore.Metadata.Conventions.Internal.ICoreConventionSetBuilder * Microsoft.EntityFrameworkCore.Infrastructure.IModelCustomizer * Microsoft.EntityFrameworkCore.Infrastructure.IModelCacheKeyFactory -> Microsoft.EntityFrameworkCore.Infrastructure.ModelSource
Protected Sub New (setFinder As IDbSetFinder, coreConventionSetBuilder As ICoreConventionSetBuilder, modelCustomizer As IModelCustomizer, modelCacheKeyFactory As IModelCacheKeyFactory)

參數

setFinder
Microsoft.EntityFrameworkCore.Internal.IDbSetFinder
coreConventionSetBuilder
Microsoft.EntityFrameworkCore.Metadata.Conventions.Internal.ICoreConventionSetBuilder
modelCustomizer
IModelCustomizer
modelCacheKeyFactory
IModelCacheKeyFactory

適用於