语言

SqliteEventId 类

定义

SQLite 事件的事件 ID,这些 ID 对应于记录到 ILogger 的消息以及发送到 a DiagnosticSource的事件。

public static class SqliteEventId
type SqliteEventId = class
Public Class SqliteEventId
继承
SqliteEventId

注解

这些 ID 还用于 WarningsConfigurationBuilder 配置警告的行为。

有关详细信息和示例,请参阅 日志记录、事件和诊断,以及 使用 EF Core 访问 SQLite 数据库 。

字段

名称 说明
ColumnFound

找到一列。

CompositeKeyWithValueGeneration

实体类型具有组合键,该键配置为使用生成的值。 SQLite 不支持在组合键上生成值。

ConflictingValueGenerationStrategiesWarning

已在属性上设置 SqliteValueGenerationStrategy 和另一个值生成配置。 配置两种策略通常是无意的,可能会导致数据库错误。

ForeignKeyFound

发现了一个外键。

ForeignKeyPrincipalColumnMissingWarning

找不到外键约束引用的列。

ForeignKeyReferencesMissingTableWarning

外键引用缺少的表。

FormatWarning

值的格式无效。

IndexFound

找到索引。

InferringTypes

推断 CLR 类型。

MissingTableWarning

数据库缺少表。

OutOfRangeWarning

值超出类型的范围。

PrimaryKeyFound

找到主键。

SchemaConfiguredWarning

为实体类型配置了架构,但 SQLite 不支持架构。

SchemasNotSupportedWarning

SQLite 不支持架构。

SequenceConfiguredWarning

为实体类型配置了序列,但 SQLite 不支持序列。

TableFound

发现了一个表。

TableRebuildPendingWarning

由于表的挂起重新生成,操作可能会失败。

UnexpectedConnectionTypeWarning

正在使用意外类型的连接。

UniqueConstraintFound

找到唯一约束。

适用于