IConventionPropertyBaseBuilder<TBuilder>.CanSetField Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
CanSetField(FieldInfo, Boolean) |
Returns a value indicating whether the backing field can be set for this property-like object from the current configuration source. |
CanSetField(String, Boolean) |
Returns a value indicating whether the backing field can be set for this property-like object from the current configuration source. |
CanSetField(FieldInfo, Boolean)
Returns a value indicating whether the backing field can be set for this property-like object from the current configuration source.
public bool CanSetField (System.Reflection.FieldInfo? fieldInfo, bool fromDataAnnotation = false);
abstract member CanSetField : System.Reflection.FieldInfo * bool -> bool
Public Function CanSetField (fieldInfo As FieldInfo, Optional fromDataAnnotation As Boolean = false) As Boolean
Parameters
- fieldInfo
- FieldInfo
The field.
- fromDataAnnotation
- Boolean
Indicates whether the configuration was specified using a data annotation.
Returns
true
if the backing field can be set for this property-like object.
Applies to
CanSetField(String, Boolean)
Returns a value indicating whether the backing field can be set for this property-like object from the current configuration source.
public bool CanSetField (string? fieldName, bool fromDataAnnotation = false);
abstract member CanSetField : string * bool -> bool
Public Function CanSetField (fieldName As String, Optional fromDataAnnotation As Boolean = false) As Boolean
Parameters
- fieldName
- String
The field name.
- fromDataAnnotation
- Boolean
Indicates whether the configuration was specified using a data annotation.
Returns
true
if the backing field can be set for this property-like object.
Applies to
Entity Framework