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
實作

建構函式

名稱 Description
SqlServerModelAnnotations(IModel)

建構指定 IModel 之注釋的實例。

SqlServerModelAnnotations(RelationalAnnotations)

建構由指定批註協助程式所表示之 IModel 注釋的 實例。

欄位

名稱 Description
DefaultHiLoSequenceName

與 一起使用之序列的預設名稱 ForSqlServerUseSequenceHiLo(PropertyBuilder, String, String)

ProviderFullAnnotationNames

透過 存取 SqlServer(IMutableModel) 關聯式特定批註的屬性。

(繼承來源 RelationalModelAnnotations)

屬性

名稱 Description
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要用於模型中索引鍵屬性的 ,除非屬性已明確設定不同的策略。

方法

名稱 Description
FindDbFunction(MethodInfo)

IDbFunction尋找對應至指定 MethodInfo 所表示之 方法的 。

(繼承來源 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 為用於模型中索引鍵的屬性。

明確介面實作

名稱 Description
IRelationalModelAnnotations.FindSequence(String, String)

尋找 ISequence 具有指定名稱的 。

(繼承來源 RelationalModelAnnotations)
IRelationalModelAnnotations.Sequences

模型中包含的所有 ISequence

(繼承來源 RelationalModelAnnotations)

適用於