SqliteValueGenerationStrategy 枚举
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
定义从 SQLite 数据库列生成键值时要在 EF Core 堆栈中使用的策略。
public enum SqliteValueGenerationStrategy
type SqliteValueGenerationStrategy =
Public Enum SqliteValueGenerationStrategy
- 继承
-
SqliteValueGenerationStrategy
字段
| 名称 | 值 | 说明 |
|---|---|---|
| None | 0 | 没有特定于 SQLite 的策略 |
| Autoincrement | 1 | 使用 SQLite 的 AUTOINCREMENT 功能的模式为新实体生成值。 |
注解
有关详细信息和示例,请参阅使用 EF Core 构建模型约定和 访问 SQLite 数据库 。