语言

SqlServerModelAnnotations 类

定义

通过 SqlServer(IMutableModel)访问的关系特定批注的属性。

public class SqlServerModelAnnotations : Microsoft.EntityFrameworkCore.Metadata.RelationalModelAnnotations, Microsoft.EntityFrameworkCore.Metadata.ISqlServerModelAnnotations
type SqlServerModelAnnotations = class
    inherit RelationalModelAnnotations
    interface ISqlServerModelAnnotations
    interface IRelationalModelAnnotations
Public Class SqlServerModelAnnotations
Inherits RelationalModelAnnotations
Implements ISqlServerModelAnnotations
继承
SqlServerModelAnnotations
实现

构造函数

名称 说明
SqlServerModelAnnotations(IModel)

构造给定 IModel批注的实例。

SqlServerModelAnnotations(RelationalAnnotations)

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

字段

名称 说明
DefaultHiLoSequenceName

用于 的序列的默认名称 ForSqlServerUseSequenceHiLo(PropertyBuilder, String, String)

ProviderFullAnnotationNames

通过 SqlServer(IMutableModel)访问的关系特定批注的属性。

(继承自 RelationalModelAnnotations)

属性

名称 说明
Annotations

RelationalAnnotations表示批注的IModel帮助程序。

(继承自 RelationalModelAnnotations)
DatabaseName

通过 SqlServer(IMutableModel)访问的关系特定批注的属性。

(继承自 RelationalModelAnnotations)
DbFunctions

模型中包含的所有 IDbFunction项。

(继承自 RelationalModelAnnotations)
DefaultSchema

要用于模型的默认架构,或者 null 未显式设置任何架构。

(继承自 RelationalModelAnnotations)
HiLoSequenceName

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

HiLoSequenceSchema

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

MaxIdentifierLength

存储标识符允许的最大长度。

(继承自 RelationalModelAnnotations)
Model

要 IModel 批注。

(继承自 RelationalModelAnnotations)
Sequences

模型中包含的所有 ISequence项。

(继承自 RelationalModelAnnotations)
ValueGenerationStrategy

要 SqlServerValueGenerationStrategy 用于模型中键的属性,除非该属性具有显式设置的其他策略。

方法

名称 说明
FindDbFunction(MethodInfo)

查找映射到由给定MethodInfo表示的方法的 aIDbFunction。

(继承自 RelationalModelAnnotations)
FindSequence(String, String)

查找具有给定名称的一个 ISequence 。

(继承自 RelationalModelAnnotations)
GetOrAddDbFunction(MethodInfo)

返回映射到给定方法的现有 Microsoft.EntityFrameworkCore.Metadata.Internal.DbFunction 函数,或创建映射到该方法的新函数。

(继承自 RelationalModelAnnotations)
GetOrAddSequence(String, String)

返回给定架构中具有给定名称的现有 IMutableSequence 名称,或者创建具有给定名称和架构的新序列。

(继承自 RelationalModelAnnotations)
SetDatabaseName(String)

通过 SqlServer(IMutableModel)访问的关系特定批注的属性。

(继承自 RelationalModelAnnotations)
SetDefaultSchema(String)

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

(继承自 RelationalModelAnnotations)
SetHiLoSequenceName(String)

尝试设置要与 一起使用的序列名称 ForSqlServerUseSequenceHiLo(PropertyBuilder, String, String)

SetHiLoSequenceSchema(String)

尝试设置序列要使用的架构 ForSqlServerUseSequenceHiLo(PropertyBuilder, String, String)

SetMaxIdentifierLength(Nullable<Int32>)

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

(继承自 RelationalModelAnnotations)
SetValueGenerationStrategy(Nullable<SqlServerValueGenerationStrategy>)

尝试设置 SqlServerValueGenerationStrategy 用于模型中键的属性。

显式接口实现

名称 说明
IRelationalModelAnnotations.FindSequence(String, String)

查找具有给定名称的一个 ISequence 。

(继承自 RelationalModelAnnotations)
IRelationalModelAnnotations.Sequences

模型中包含的所有 ISequence项。

(继承自 RelationalModelAnnotations)

适用于