語言

ScaffoldingPropertyAnnotations 類別

定義

public class ScaffoldingPropertyAnnotations : Microsoft.EntityFrameworkCore.Metadata.RelationalPropertyAnnotations
type ScaffoldingPropertyAnnotations = class
    inherit RelationalPropertyAnnotations
Public Class ScaffoldingPropertyAnnotations
Inherits RelationalPropertyAnnotations
繼承
ScaffoldingPropertyAnnotations

建構函式

名稱 Description
ScaffoldingPropertyAnnotations(IProperty)

欄位

名稱 Description
ProviderFullAnnotationNames (繼承來源 RelationalPropertyAnnotations)

屬性

名稱 Description
Annotations

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

(繼承來源 RelationalPropertyAnnotations)
ColumnName

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

(繼承來源 RelationalPropertyAnnotations)
ColumnOrdinal
ColumnType

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

(繼承來源 RelationalPropertyAnnotations)
ComputedColumnSql

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

(繼承來源 RelationalPropertyAnnotations)
DefaultValue

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

(繼承來源 RelationalPropertyAnnotations)
DefaultValueSql

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

(繼承來源 RelationalPropertyAnnotations)
Property

註 IProperty 解。

(繼承來源 RelationalPropertyAnnotations)
ShouldThrowOnConflict

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

(繼承來源 RelationalPropertyAnnotations)

方法

名稱 Description
CanSetComputedColumnSql(String)

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

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

(繼承來源 RelationalPropertyAnnotations)
CanSetDefaultValue(Object)

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

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

(繼承來源 RelationalPropertyAnnotations)
CanSetDefaultValueSql(String)

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

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

(繼承來源 RelationalPropertyAnnotations)
ClearAllServerGeneratedValues()

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

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

適用於