语言

SqliteValueGenerationStrategy 枚举

定义

定义从 SQLite 数据库列生成键值时要在 EF Core 堆栈中使用的策略。

public enum SqliteValueGenerationStrategy
type SqliteValueGenerationStrategy = 
Public Enum SqliteValueGenerationStrategy
继承
SqliteValueGenerationStrategy

字段

名称 值 说明
None 0

没有特定于 SQLite 的策略

Autoincrement 1

使用 SQLite 的 AUTOINCREMENT 功能的模式为新实体生成值。

注解

有关详细信息和示例,请参阅使用 EF Core 构建模型约定和 访问 SQLite 数据库 。

适用于