Share via


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 注釋的 實例。

欄位

ProviderFullAnnotationNames

透過 存取 Sqlite(IMutableProperty) 之 SQLite 特定批註的屬性。

(繼承來源 RelationalPropertyAnnotations)

屬性

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 來實作最後一次呼叫 wins 語意時,通常會覆寫此動作。

(繼承來源 RelationalPropertyAnnotations)
ShouldThrowOnInvalidConfiguration

指出如果設定不正確組態,是否應該擲回例外狀況。

(繼承來源 RelationalPropertyAnnotations)
Srid

取得或設定在建立此屬性的資料行時要使用的 SRID。

方法

CanSetComputedColumnSql(String)

判斷是否可以 ComputedColumnSql 在沒有衝突的情況下設定。

如果 ShouldThrowOnConflict 傳回 ,這個方法可能會擲回 true

(繼承來源 RelationalPropertyAnnotations)
CanSetDefaultValue(Object)

判斷是否可以 DefaultValue 在沒有衝突的情況下設定。

如果 ShouldThrowOnConflict 傳回 ,這個方法可能會擲回 true

(繼承來源 RelationalPropertyAnnotations)
CanSetDefaultValueSql(String)

判斷是否可以 DefaultValueSql 在沒有衝突的情況下設定。

如果 ShouldThrowOnConflict 傳回 ,這個方法可能會擲回 true

(繼承來源 RelationalPropertyAnnotations)
ClearAllServerGeneratedValues()

清除針對 DefaultValueDefaultValueSqlComputedColumnSql 設定的任何值。

(繼承來源 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。

適用於