語言

IConventionDbFunctionBuilder 介面

定義

提供一個簡單的 API 來設定 IConventionDbFunction.

public interface IConventionDbFunctionBuilder : Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionAnnotatableBuilder
public interface IConventionDbFunctionBuilder
type IConventionDbFunctionBuilder = interface
    interface IConventionAnnotatableBuilder
type IConventionDbFunctionBuilder = interface
Public Interface IConventionDbFunctionBuilder
Implements IConventionAnnotatableBuilder
Public Interface IConventionDbFunctionBuilder
衍生
實作

備註

更多資訊與範例請參閱 模型建構慣例 。

屬性

名稱 Description
Metadata

正在設定的功能。

ModelBuilder

會得到模型製作者。

(繼承來源 IConventionAnnotatableBuilder)

方法

名稱 Description
CanRemoveAnnotation(String, Boolean)

回傳一個值,指示是否能使用此組態來源移除帶有該名稱的註解。

(繼承來源 IConventionAnnotatableBuilder)
CanSetAnnotation(String, Object, Boolean)

回傳一個值,指示是否能從此配置來源設定包含該名稱與值的註解。

(繼承來源 IConventionAnnotatableBuilder)
CanSetIsBuiltIn(Boolean, Boolean)

回傳一個值,表示是否能為資料庫函式設定給定的內建功能。

CanSetIsNullable(Boolean, Boolean)

回傳一個值,表示資料庫函式是否能設定給定的空可值。

CanSetName(String, Boolean)

回傳一個值,指示資料庫函式是否能設定該名稱。

CanSetSchema(String, Boolean)

回傳一個值,表示是否能設定給定的結構用於資料庫函式。

CanSetStoreType(String, Boolean)

回傳一個值,指示是否可以設定給定的儲存類型作為資料庫函式。

CanSetTranslation(Func<IReadOnlyCollection<SqlExpression>,SqlExpression>, Boolean)

回傳一個值,指示是否能為資料庫函式設定該轉換。

CanSetTranslation(Func<IReadOnlyList<SqlExpression>,SqlExpression>, Boolean)

回傳一個值,指示是否能為資料庫函式設定該轉換。

CanSetTypeMapping(RelationalTypeMapping, Boolean)

回傳一個值,指示是否能為資料庫函式設定該回退類型映射。

HasAnnotation(String, Object, Boolean)

設定以名字儲存的註解。 若已有指定名稱的註解存在相同或更低 ConfigurationSource的標註,則會覆寫現有註解。

HasName(String, Boolean)

設定資料庫函式的名稱。

HasNoAnnotation(String, Boolean)

移除這個物件中帶有名字的註解。

HasNonNullAnnotation(String, Object, Boolean)

設定以名字儲存的註解。 若已有指定名稱的註解存在相同或更低 ConfigurationSource的標註,則會覆寫現有註解。 若指定值, null 則移除註解。

HasParameter(String, Boolean)

回傳一個物件,可用來設定帶有該名稱的參數。

HasSchema(String, Boolean)

設定資料庫函式的架構。

HasStoreType(String, Boolean)

設定函式在資料庫中的儲存類型。

HasTranslation(Func<IReadOnlyCollection<SqlExpression>,SqlExpression>, Boolean)

設定一個回調,將被呼叫以執行此函式的自訂轉譯。 回調會取一組對應於傳遞給函式呼叫參數的表達式。 回調應回傳一個代表所需翻譯的表達式。

如需相關資訊,請參閱 https://go.microsoft.com/fwlink/?linkid=852477 。

HasTranslation(Func<IReadOnlyList<SqlExpression>,SqlExpression>, Boolean)

設定一個回調,將被呼叫以執行此函式的自訂轉譯。 回調會取一組對應於傳遞給函式呼叫參數的表達式。 回調應回傳一個代表所需翻譯的表達式。

HasTypeMapping(RelationalTypeMapping, Boolean)

設定資料庫函式的回傳類型映射。

IsBuiltIn(Boolean, Boolean)

設定顯示資料庫函式是否內建的值。

IsNullable(Boolean, Boolean)

設定 該值,表示資料庫函式是否能回傳 null 值。

RemoveAnnotation(String, Boolean)
已淘汰.

移除這個物件中帶有名字的註解。

(繼承來源 IConventionAnnotatableBuilder)
SetOrRemoveAnnotation(String, Object, Boolean)
已淘汰.

設定或移除以名字儲存的註解。

(繼承來源 IConventionAnnotatableBuilder)

適用於