IConventionRelationshipBuilder.HasField Method

Definition

Overloads

HasField(FieldInfo, Boolean, Boolean)

Sets the backing field to use for a navigation.

HasField(String, Boolean, Boolean)

Sets the backing field to use for a navigation.

HasField(FieldInfo, Boolean, Boolean)

Sets the backing field to use for a navigation.

public Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionRelationshipBuilder HasField (System.Reflection.FieldInfo fieldInfo, bool pointsToPrincipal, bool fromDataAnnotation = false);
abstract member HasField : System.Reflection.FieldInfo * bool * bool -> Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionRelationshipBuilder
Public Function HasField (fieldInfo As FieldInfo, pointsToPrincipal As Boolean, Optional fromDataAnnotation As Boolean = false) As IConventionRelationshipBuilder

Parameters

fieldInfo
FieldInfo

The field.

pointsToPrincipal
Boolean

A value indicating whether the navigation is on the dependent type pointing to the principal type.

fromDataAnnotation
Boolean

Indicates whether the configuration was specified using a data annotation.

Returns

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

Applies to

HasField(String, Boolean, Boolean)

Sets the backing field to use for a navigation.

public Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionRelationshipBuilder HasField (string fieldName, bool pointsToPrincipal, bool fromDataAnnotation = false);
abstract member HasField : string * bool * bool -> Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionRelationshipBuilder
Public Function HasField (fieldName As String, pointsToPrincipal As Boolean, Optional fromDataAnnotation As Boolean = false) As IConventionRelationshipBuilder

Parameters

fieldName
String

The field name.

pointsToPrincipal
Boolean

A value indicating whether the navigation is on the dependent type pointing to the principal type.

fromDataAnnotation
Boolean

Indicates whether the configuration was specified using a data annotation.

Returns

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

Applies to