語言

IConventionDbFunctionBuilder.HasName(String, Boolean) 方法

定義

設定資料庫函式的名稱。

public Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionDbFunctionBuilder? HasName(string? name, bool fromDataAnnotation = false);
public Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionDbFunctionBuilder HasName(string name, bool fromDataAnnotation = false);
abstract member HasName : string * bool -> Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionDbFunctionBuilder
Public Function HasName (name As String, Optional fromDataAnnotation As Boolean = false) As IConventionDbFunctionBuilder

參數

name
String

資料庫中函式的名稱。

fromDataAnnotation
Boolean

表示配置是否以資料註解方式指定。

傳回

如果設定是套用,則使用同一個建構者實例, null 否則。

適用於