语言

ISqlServerPropertyAnnotations 接口

定义

用于通过访问SQL Server特定批注的 SqlServer(IProperty)API。

public interface ISqlServerPropertyAnnotations : Microsoft.EntityFrameworkCore.Metadata.IRelationalPropertyAnnotations
type ISqlServerPropertyAnnotations = interface
    interface IRelationalPropertyAnnotations
Public Interface ISqlServerPropertyAnnotations
Implements IRelationalPropertyAnnotations
派生
实现

属性

名称 说明
ColumnName

属性映射到的列的名称。

(继承自 IRelationalPropertyAnnotations)
ColumnType

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

(继承自 IRelationalPropertyAnnotations)
ComputedColumnSql

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

(继承自 IRelationalPropertyAnnotations)
DefaultValue

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

(继承自 IRelationalPropertyAnnotations)
DefaultValueSql

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

(继承自 IRelationalPropertyAnnotations)
HiLoSequenceName

获取要用于 的序列名称 ForSqlServerUseSequenceHiLo(PropertyBuilder, String, String)

HiLoSequenceSchema

获取要使用的序列的架构 ForSqlServerUseSequenceHiLo(PropertyBuilder, String, String)

IsFixedLength

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

(继承自 IRelationalPropertyAnnotations)
ValueGenerationStrategy

获取 SqlServerValueGenerationStrategy 要用于属性的项。

如果未为属性设置任何策略,则要使用的策略将从 IModel

方法

名称 说明
FindHiLoSequence()

查找 ISequence 要使用的模型中 ForSqlServerUseSequenceHiLo(PropertyBuilder, String, String)

适用于