SqlitePropertyAnnotations 类

定义

通过 Sqlite(IMutableProperty)访问的特定于 SQLite 的批注的属性。

public class SqlitePropertyAnnotations : Microsoft.EntityFrameworkCore.Metadata.RelationalPropertyAnnotations, Microsoft.EntityFrameworkCore.Metadata.ISqlitePropertyAnnotations
type SqlitePropertyAnnotations = class
    inherit RelationalPropertyAnnotations
    interface ISqlitePropertyAnnotations
    interface IRelationalPropertyAnnotations
Public Class SqlitePropertyAnnotations
Inherits RelationalPropertyAnnotations
Implements ISqlitePropertyAnnotations
继承
SqlitePropertyAnnotations
实现

构造函数

SqlitePropertyAnnotations(IProperty)

为给定 IProperty的注释构造 实例。

SqlitePropertyAnnotations(RelationalAnnotations)

构造由给定批注帮助程序表示的 IProperty 的注释的 实例。

字段

ProviderFullAnnotationNames

通过 Sqlite(IMutableProperty)访问的特定于 SQLite 的批注的属性。

(继承自 RelationalPropertyAnnotations)

属性

Annotations

表示 RelationalAnnotations 要批注的 的 IProperty 帮助程序。

(继承自 RelationalPropertyAnnotations)
ColumnName

属性映射到的列的名称。

(继承自 RelationalPropertyAnnotations)
ColumnType

属性映射到的列的数据库类型。

(继承自 RelationalPropertyAnnotations)
ComputedColumnSql

为此属性创建列时应使用的计算约束 SQL 表达式。

(继承自 RelationalPropertyAnnotations)
DefaultValue

为此属性创建列时要在列定义中使用的默认值。

(继承自 RelationalPropertyAnnotations)
DefaultValueSql

为此属性创建列时应使用的默认约束 SQL 表达式。

(继承自 RelationalPropertyAnnotations)
Dimension

获取或设置在为此属性创建列时要使用的维度。

IsFixedLength

一个标志,指示 属性是否能够仅存储固定长度的数据,如字符串。

(继承自 RelationalPropertyAnnotations)
Property

IProperty 批注的 。

(继承自 RelationalPropertyAnnotations)
ShouldThrowOnConflict

指示在设置冲突的配置时是否应引发异常。 使用 Fluent API 生成以实现最后一次调用胜出语义时,通常会重写这一点。

(继承自 RelationalPropertyAnnotations)
ShouldThrowOnInvalidConfiguration

指示在设置无效配置时是否应引发异常。

(继承自 RelationalPropertyAnnotations)
Srid

获取或设置为此属性创建列时要使用的 SRID。

方法

CanSetComputedColumnSql(String)

ComputedColumnSql确定是否可以在不发生冲突的情况下设置。

如果 ShouldThrowOnConflict 返回 true,则此方法可能会引发 。

(继承自 RelationalPropertyAnnotations)
CanSetDefaultValue(Object)

DefaultValue确定是否可以在不发生冲突的情况下设置。

如果 ShouldThrowOnConflict 返回 true,则此方法可能会引发 。

(继承自 RelationalPropertyAnnotations)
CanSetDefaultValueSql(String)

DefaultValueSql确定是否可以在不发生冲突的情况下设置。

如果 ShouldThrowOnConflict 返回 true,则此方法可能会引发 。

(继承自 RelationalPropertyAnnotations)
ClearAllServerGeneratedValues()

清除为 DefaultValueDefaultValueSqlComputedColumnSql设置的任何值。

(继承自 RelationalPropertyAnnotations)
GetAnnotations(IEntityType)

RelationalEntityTypeAnnotations获取给定 IEntityType 的实例,该RelationalAnnotations实例维护此实例用于按约定控制设置批注的语义。

(继承自 RelationalPropertyAnnotations)
GetAnnotations(IProperty)

RelationalPropertyAnnotations获取给定 IProperty 的实例,该RelationalAnnotations实例维护此实例用于按约定控制设置批注的语义。

(继承自 RelationalPropertyAnnotations)
GetComputedColumnSql(Boolean)

获取在为此属性创建列时应使用的计算约束 SQL 表达式。

(继承自 RelationalPropertyAnnotations)
GetDefaultValue(Boolean)

获取在为此属性创建列时要在列定义中使用的默认值。

(继承自 RelationalPropertyAnnotations)
GetDefaultValueSql(Boolean)

获取在为此属性创建列时应使用的默认约束 SQL 表达式。

(继承自 RelationalPropertyAnnotations)
SetColumnName(String)

尝试使用正在使用 ColumnName 的 语义 RelationalAnnotations 设置 。

(继承自 RelationalPropertyAnnotations)
SetColumnType(String)

尝试使用正在使用 ColumnType 的 语义 RelationalAnnotations 设置 。

(继承自 RelationalPropertyAnnotations)
SetComputedColumnSql(String)

尝试使用正在使用 ComputedColumnSql 的 语义 RelationalAnnotations 设置 。

(继承自 RelationalPropertyAnnotations)
SetDefaultValue(Object)

尝试使用正在使用 DefaultValue 的 语义 RelationalAnnotations 设置 。

(继承自 RelationalPropertyAnnotations)
SetDefaultValueSql(String)

尝试使用正在使用 DefaultValueSql 的 语义 RelationalAnnotations 设置 。

(继承自 RelationalPropertyAnnotations)
SetDimension(String)

设置在为此属性创建列时要使用的维度。

SetFixedLength(Boolean)

将 属性配置为能够仅存储固定长度的数据,例如字符串。

(继承自 RelationalPropertyAnnotations)
SetSrid(Nullable<Int32>)

设置为此属性创建列时要使用的 SRID。

适用于