SqlServerConventionSetBuilder 构造函数
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
SqlServerConventionSetBuilder(RelationalConventionSetBuilderDependencies, ISqlGenerationHelper)
此 API 支持 Entity Framework Core 基础结构,不应直接从代码使用。 将来的版本中可能会更改或删除此 API。
public SqlServerConventionSetBuilder (Microsoft.EntityFrameworkCore.Metadata.Conventions.Internal.RelationalConventionSetBuilderDependencies dependencies, Microsoft.EntityFrameworkCore.Storage.ISqlGenerationHelper sqlGenerationHelper);
new Microsoft.EntityFrameworkCore.Metadata.Conventions.SqlServerConventionSetBuilder : Microsoft.EntityFrameworkCore.Metadata.Conventions.Internal.RelationalConventionSetBuilderDependencies * Microsoft.EntityFrameworkCore.Storage.ISqlGenerationHelper -> Microsoft.EntityFrameworkCore.Metadata.Conventions.SqlServerConventionSetBuilder
Public Sub New (dependencies As RelationalConventionSetBuilderDependencies, sqlGenerationHelper As ISqlGenerationHelper)
参数
- dependencies
- Microsoft.EntityFrameworkCore.Metadata.Conventions.Internal.RelationalConventionSetBuilderDependencies
- sqlGenerationHelper
- ISqlGenerationHelper
适用于
SqlServerConventionSetBuilder(ProviderConventionSetBuilderDependencies, RelationalConventionSetBuilderDependencies, ISqlGenerationHelper)
创建一个新的 SqlServerConventionSetBuilder 实例。
public SqlServerConventionSetBuilder (Microsoft.EntityFrameworkCore.Metadata.Conventions.Infrastructure.ProviderConventionSetBuilderDependencies dependencies, Microsoft.EntityFrameworkCore.Metadata.Conventions.Infrastructure.RelationalConventionSetBuilderDependencies relationalDependencies, Microsoft.EntityFrameworkCore.Storage.ISqlGenerationHelper sqlGenerationHelper);
new Microsoft.EntityFrameworkCore.Metadata.Conventions.SqlServerConventionSetBuilder : Microsoft.EntityFrameworkCore.Metadata.Conventions.Infrastructure.ProviderConventionSetBuilderDependencies * Microsoft.EntityFrameworkCore.Metadata.Conventions.Infrastructure.RelationalConventionSetBuilderDependencies * Microsoft.EntityFrameworkCore.Storage.ISqlGenerationHelper -> Microsoft.EntityFrameworkCore.Metadata.Conventions.SqlServerConventionSetBuilder
Public Sub New (dependencies As ProviderConventionSetBuilderDependencies, relationalDependencies As RelationalConventionSetBuilderDependencies, sqlGenerationHelper As ISqlGenerationHelper)
参数
- dependencies
- ProviderConventionSetBuilderDependencies
此服务的核心依赖项。
- relationalDependencies
- RelationalConventionSetBuilderDependencies
此服务的关系依赖项。
- sqlGenerationHelper
- ISqlGenerationHelper
要使用的 SQL 生成帮助程序。
适用于
SqlServerConventionSetBuilder(IRelationalTypeMapper, ICurrentDbContext, IDbSetFinder)
public SqlServerConventionSetBuilder (Microsoft.EntityFrameworkCore.Storage.IRelationalTypeMapper typeMapper, Microsoft.EntityFrameworkCore.Internal.ICurrentDbContext currentContext, Microsoft.EntityFrameworkCore.Internal.IDbSetFinder setFinder);
new Microsoft.EntityFrameworkCore.Metadata.Conventions.SqlServerConventionSetBuilder : Microsoft.EntityFrameworkCore.Storage.IRelationalTypeMapper * Microsoft.EntityFrameworkCore.Internal.ICurrentDbContext * Microsoft.EntityFrameworkCore.Internal.IDbSetFinder -> Microsoft.EntityFrameworkCore.Metadata.Conventions.SqlServerConventionSetBuilder
Public Sub New (typeMapper As IRelationalTypeMapper, currentContext As ICurrentDbContext, setFinder As IDbSetFinder)
参数
- typeMapper
- IRelationalTypeMapper
- currentContext
- Microsoft.EntityFrameworkCore.Internal.ICurrentDbContext
- setFinder
- Microsoft.EntityFrameworkCore.Internal.IDbSetFinder