SqliteValueGenerationConvention 类
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
将存储值生成配置为 OnAdd 作为主键的一部分(而不是任何外键的一部分)的约定配置为具有数据库默认值或配置为使用 a SqliteValueGenerationStrategy。 它还将属性 OnAddOrUpdate 配置为计算列。
[System.Runtime.CompilerServices.Nullable(0)]
public class SqliteValueGenerationConvention : Microsoft.EntityFrameworkCore.Metadata.Conventions.RelationalValueGenerationConvention
[<System.Runtime.CompilerServices.Nullable(0)>]
type SqliteValueGenerationConvention = class
inherit RelationalValueGenerationConvention
Public Class SqliteValueGenerationConvention
Inherits RelationalValueGenerationConvention
- 继承
-
SqliteValueGenerationConvention
- 特性
注解
有关详细信息和示例,请参阅使用 EF Core 构建模型约定和 访问 SQLite 数据库 。
构造函数
| 名称 | 说明 |
|---|---|
| SqliteValueGenerationConvention(ProviderConventionSetBuilderDependencies, RelationalConventionSetBuilderDependencies) |
创建 SqliteValueGenerationConvention的新实例。 |
属性
| 名称 | 说明 |
|---|---|
| Dependencies |
此服务的依赖项。 (继承自 ValueGenerationConvention) |
| RelationalDependencies |
此服务的关系提供程序特定的依赖项。 (继承自 RelationalValueGenerationConvention) |