語言

SqlitePropertyAnnotations 類別

定義

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

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

建構函式

名稱 Description
SqlitePropertyAnnotations(IProperty)

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

SqlitePropertyAnnotations(RelationalAnnotations)

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

屬性

名稱 Description
Annotations

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

(繼承來源 RelationalPropertyAnnotations)
ColumnName

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

(繼承來源 RelationalPropertyAnnotations)
ColumnType

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

(繼承來源 RelationalPropertyAnnotations)
ComputedColumnSql

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

(繼承來源 RelationalPropertyAnnotations)
DefaultValue

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

(繼承來源 RelationalPropertyAnnotations)
DefaultValueSql

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

(繼承來源 RelationalPropertyAnnotations)
Dimension

取得或設定此屬性欄位時要使用的維度。

IsFixedLength

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

(繼承來源 RelationalPropertyAnnotations)
Property

註 IProperty 解。

(繼承來源 RelationalPropertyAnnotations)
ShouldThrowOnConflict

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

(繼承來源 RelationalPropertyAnnotations)
ShouldThrowOnInvalidConfiguration

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

(繼承來源 RelationalPropertyAnnotations)
Srid

在建立此屬性欄位時,取得或設定 SRID 以使用。

方法

名稱 Description
CanSetComputedColumnSql(String)

決定是否 ComputedColumnSql 能設定而不受衝突。

此方法若返回 ShouldThrowOnConflicttrue,則可拋出 。

(繼承來源 RelationalPropertyAnnotations)
CanSetDefaultValue(Object)

決定是否 DefaultValue 能設定而不受衝突。

此方法若返回 ShouldThrowOnConflicttrue,則可拋出 。

(繼承來源 RelationalPropertyAnnotations)
CanSetDefaultValueSql(String)

決定是否 DefaultValueSql 能設定而不受衝突。

此方法若返回 ShouldThrowOnConflicttrue,則可拋出 。

(繼承來源 RelationalPropertyAnnotations)
ClearAllServerGeneratedValues()

清除所有為 、 DefaultValueSql、 ComputedColumnSql和 設定的DefaultValue值。

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

適用於