語言

SqlServerPropertyAnnotations 類別

定義

透過 SqlServer(IMutableProperty)存取的 SQL Server 專屬註解屬性。

public class SqlServerPropertyAnnotations : Microsoft.EntityFrameworkCore.Metadata.RelationalPropertyAnnotations, Microsoft.EntityFrameworkCore.Metadata.ISqlServerPropertyAnnotations
type SqlServerPropertyAnnotations = class
    inherit RelationalPropertyAnnotations
    interface ISqlServerPropertyAnnotations
    interface IRelationalPropertyAnnotations
Public Class SqlServerPropertyAnnotations
Inherits RelationalPropertyAnnotations
Implements ISqlServerPropertyAnnotations
繼承
SqlServerPropertyAnnotations
實作

建構函式

名稱 Description
SqlServerPropertyAnnotations(IProperty)

構造一個給定 IProperty註解的實例。

SqlServerPropertyAnnotations(RelationalAnnotations)

為所代表的註解 IProperty 建構一個實例。

欄位

名稱 Description
ProviderFullAnnotationNames

透過 SqlServer(IMutableProperty)存取的 SQL Server 專屬註解屬性。

(繼承來源 RelationalPropertyAnnotations)

屬性

名稱 Description
Annotations

RelationalAnnotations代表 的 IProperty 輔助工具 to annotate。

(繼承來源 RelationalPropertyAnnotations)
ColumnName

該物業所映射的欄位名稱。

(繼承來源 RelationalPropertyAnnotations)
ColumnType

屬性所映射的欄位的資料庫類型。

(繼承來源 RelationalPropertyAnnotations)
ComputedColumnSql

建立此屬性欄位時應使用的計算限制 SQL 表達式。

(繼承來源 RelationalPropertyAnnotations)
DefaultValue

這是建立此屬性欄位時,定義欄位時的預設值。

(繼承來源 RelationalPropertyAnnotations)
DefaultValueSql

建立欄位時應該使用的預設限制 SQL 表達式。

(繼承來源 RelationalPropertyAnnotations)
HiLoSequenceName

取得或設定序列名稱以 ForSqlServerUseSequenceHiLo(PropertyBuilder, String, String)

HiLoSequenceSchema

取得或設定序列的結構模式,以 ForSqlServerUseSequenceHiLo(PropertyBuilder, String, String)

IsFixedLength

一個旗標,指示該屬性是否能儲存固定長度的資料,例如字串。

(繼承來源 RelationalPropertyAnnotations)
Property

註 IProperty 解。

(繼承來源 RelationalPropertyAnnotations)
ShouldThrowOnConflict

指示若設定衝突,是否應拋出例外。 當使用流暢 API 實作 Last Call Wins 語意時,這通常會被覆蓋。

(繼承來源 RelationalPropertyAnnotations)
ShouldThrowOnInvalidConfiguration

表示若設定無效,是否應拋出例外。

(繼承來源 RelationalPropertyAnnotations)
ValueGenerationStrategy

取得或設定 SqlServerValueGenerationStrategy 該物業的使用。

若該性質未設定策略,則將從 IModel

方法

名稱 Description
CanSetComputedColumnSql(String)

檢查是否有效設定該屬性的計算出的 SQL 表達式。

CanSetDefaultValue(Object)

檢查設定屬性預設值是否有效。

CanSetDefaultValueSql(String)

檢查是否有效設定該屬性的預設 SQL 表達式。

CanSetValueGenerationStrategy(Nullable<SqlServerValueGenerationStrategy>)

檢查是否有效設定該性質的給定 SqlServerValueGenerationStrategy 值。

ClearAllServerGeneratedValues()

將該物業的價值產生重置為預設狀態。

FindHiLoSequence()

在模型中找到 並 ISequence 用於 ForSqlServerUseSequenceHiLo(PropertyBuilder, String, String)

GetAnnotations(IEntityType)

取得 RelationalEntityTypeAnnotations 給定 IEntityType 的實例,維持 RelationalAnnotations 該實例所使用的語意,以慣例控制設定註解。

(繼承來源 RelationalPropertyAnnotations)
GetAnnotations(IProperty)

取得 RelationalPropertyAnnotations 給定 IProperty 的實例,維持 RelationalAnnotations 該實例所使用的語意,以慣例控制設定註解。

(繼承來源 RelationalPropertyAnnotations)
GetComputedColumnSql(Boolean)

取得該屬性計算出的 SQL 表達式集合。

GetDefaultValue(Boolean)

會設定該物業的預設值。

GetDefaultValueSql(Boolean)

取得該屬性預設的 SQL 表達式設定。

GetSqlServerValueGenerationStrategy(Boolean)

取得或設定 SqlServerValueGenerationStrategy 該物業的使用。

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)
SetFixedLength(Boolean)

將屬性配置為僅能儲存固定長度的資料,例如字串。

(繼承來源 RelationalPropertyAnnotations)
SetHiLoSequenceName(String)

將序列名稱設定為 。ForSqlServerUseSequenceHiLo(PropertyBuilder, String, String)

SetHiLoSequenceSchema(String)

設定序列的結構,使其與 ForSqlServerUseSequenceHiLo(PropertyBuilder, String, String)一起使用。

SetValueGenerationStrategy(Nullable<SqlServerValueGenerationStrategy>)

設定 屬性 SqlServerValueGenerationStrategy 的 。

適用於