語言

IConventionPropertyBaseBuilder<TBuilder>.HasField 方法

定義

多載

名稱 Description
HasField(FieldInfo, Boolean)

將背景欄位設定為這個類似性質的物件所使用。

HasField(String, Boolean)

將背景欄位設定為這個類似性質的物件所使用。

HasField(FieldInfo, Boolean)

來源:
IConventionPropertyBaseBuilder.cs
來源:
IConventionPropertyBaseBuilder.cs
來源:
IConventionPropertyBaseBuilder.cs
來源:
IConventionPropertyBaseBuilder.cs

將背景欄位設定為這個類似性質的物件所使用。

public TBuilder? HasField(System.Reflection.FieldInfo? fieldInfo, bool fromDataAnnotation = false);
abstract member HasField : System.Reflection.FieldInfo * bool -> 'Builder
Public Function HasField (fieldInfo As FieldInfo, Optional fromDataAnnotation As Boolean = false) As TBuilder

參數

fieldInfo
FieldInfo

場地。

fromDataAnnotation
Boolean

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

傳回

TBuilder

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

適用於

HasField(String, Boolean)

來源:
IConventionPropertyBaseBuilder.cs
來源:
IConventionPropertyBaseBuilder.cs
來源:
IConventionPropertyBaseBuilder.cs
來源:
IConventionPropertyBaseBuilder.cs

將背景欄位設定為這個類似性質的物件所使用。

public TBuilder? HasField(string? fieldName, bool fromDataAnnotation = false);
abstract member HasField : string * bool -> 'Builder
Public Function HasField (fieldName As String, Optional fromDataAnnotation As Boolean = false) As TBuilder

參數

fieldName
String

欄位名稱。

fromDataAnnotation
Boolean

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

傳回

TBuilder

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

適用於