语言

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 批注的实例。

属性

名称 说明
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()

清除为其 DefaultValue设置的任何值, DefaultValueSql以及 ComputedColumnSql。

(继承自 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)

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

(继承自 RelationalPropertyAnnotations)
SetColumnType(String)

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

(继承自 RelationalPropertyAnnotations)
SetComputedColumnSql(String)

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

(继承自 RelationalPropertyAnnotations)
SetDefaultValue(Object)

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

(继承自 RelationalPropertyAnnotations)
SetDefaultValueSql(String)

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

(继承自 RelationalPropertyAnnotations)
SetDimension(String)

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

SetFixedLength(Boolean)

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

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

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

适用于