SqlServerStoreGenerationConvention 类
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
一种约定,用于确保属性未配置为具有默认值(作为计算列或同时使用)。SqlServerValueGenerationStrategy
[System.Runtime.CompilerServices.Nullable(0)]
public class SqlServerStoreGenerationConvention : Microsoft.EntityFrameworkCore.Metadata.Conventions.StoreGenerationConvention
public class SqlServerStoreGenerationConvention : Microsoft.EntityFrameworkCore.Metadata.Conventions.StoreGenerationConvention
[<System.Runtime.CompilerServices.Nullable(0)>]
type SqlServerStoreGenerationConvention = class
inherit StoreGenerationConvention
type SqlServerStoreGenerationConvention = class
inherit StoreGenerationConvention
Public Class SqlServerStoreGenerationConvention
Inherits StoreGenerationConvention
- 继承
- 特性
注解
有关详细信息和示例,请参阅使用 EF Core 访问SQL Server和Azure SQL数据库。
构造函数
| 名称 | 说明 |
|---|---|
| SqlServerStoreGenerationConvention(ProviderConventionSetBuilderDependencies, RelationalConventionSetBuilderDependencies) |
属性
| 名称 | 说明 |
|---|---|
| Dependencies |
此服务的依赖项。 (继承自 StoreGenerationConvention) |
| RelationalDependencies |
此服务的关系提供程序特定的依赖项。 (继承自 StoreGenerationConvention) |