SqlServerValueGenerationStrategyConvention 类
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
将默认模型 SqlServerValueGenerationStrategy 配置为 IdentityColumn的约定。
public class SqlServerValueGenerationStrategyConvention : Microsoft.EntityFrameworkCore.Metadata.Conventions.IModelFinalizedConvention, Microsoft.EntityFrameworkCore.Metadata.Conventions.IModelInitializedConvention
public class SqlServerValueGenerationStrategyConvention : Microsoft.EntityFrameworkCore.Metadata.Conventions.IModelFinalizingConvention, Microsoft.EntityFrameworkCore.Metadata.Conventions.IModelInitializedConvention
type SqlServerValueGenerationStrategyConvention = class
interface IModelInitializedConvention
interface IConvention
interface IModelFinalizedConvention
type SqlServerValueGenerationStrategyConvention = class
interface IModelInitializedConvention
interface IConvention
interface IModelFinalizingConvention
Public Class SqlServerValueGenerationStrategyConvention
Implements IModelFinalizedConvention, IModelInitializedConvention
Public Class SqlServerValueGenerationStrategyConvention
Implements IModelFinalizingConvention, IModelInitializedConvention
- 继承
-
SqlServerValueGenerationStrategyConvention
- 实现
注解
有关详细信息和示例,请参阅模型构建约定和使用 EF Core 访问SQL Server和Azure SQL数据库。
构造函数
SqlServerValueGenerationStrategyConvention(ProviderConventionSetBuilderDependencies, RelationalConventionSetBuilderDependencies) |
属性
Dependencies |
此服务的依赖项。 |
RelationalDependencies |
此服务的关系提供程序特定的依赖项。 |