Share via


IConventionPropertyBaseBuilder<TBuilder>.HasField Method

Definition

Overloads

HasField(FieldInfo, Boolean)

Sets the backing field to use for this property-like object.

HasField(String, Boolean)

Sets the backing field to use for this property-like object.

HasField(FieldInfo, Boolean)

Sets the backing field to use for this property-like object.

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

Parameters

fieldInfo
FieldInfo

The field.

fromDataAnnotation
Boolean

Indicates whether the configuration was specified using a data annotation.

Returns

TBuilder

The same builder instance if the configuration was applied, null otherwise.

Applies to

HasField(String, Boolean)

Sets the backing field to use for this property-like object.

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

Parameters

fieldName
String

The field name.

fromDataAnnotation
Boolean

Indicates whether the configuration was specified using a data annotation.

Returns

TBuilder

The same builder instance if the configuration was applied, null otherwise.

Applies to