IConventionRelationshipBuilder.CanSetField Method

Definition

Overloads

CanSetField(FieldInfo, Boolean, Boolean)

Returns a value indicating whether the backing field can be set for a navigation from the current configuration source.

CanSetField(String, Boolean, Boolean)

Returns a value indicating whether the backing field can be set for a navigation from the current configuration source.

CanSetField(FieldInfo, Boolean, Boolean)

Returns a value indicating whether the backing field can be set for a navigation from the current configuration source.

public bool CanSetField (System.Reflection.FieldInfo fieldInfo, bool pointsToPrincipal, bool fromDataAnnotation = false);
abstract member CanSetField : System.Reflection.FieldInfo * bool * bool -> bool
Public Function CanSetField (fieldInfo As FieldInfo, pointsToPrincipal As Boolean, Optional fromDataAnnotation As Boolean = false) As Boolean

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

true if the backing field can be set for this property.

Applies to

CanSetField(String, Boolean, Boolean)

Returns a value indicating whether the backing field can be set for a navigation from the current configuration source.

public bool CanSetField (string fieldName, bool pointsToPrincipal, bool fromDataAnnotation = false);
abstract member CanSetField : string * bool * bool -> bool
Public Function CanSetField (fieldName As String, pointsToPrincipal As Boolean, Optional fromDataAnnotation As Boolean = false) As Boolean

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

true if the backing field can be set for this property.

Applies to