IConventionSkipNavigationBuilder.HasField 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
HasField(FieldInfo, Boolean) |
Sets the backing field to use for this navigation. |
HasField(String, Boolean) |
Sets the backing field to use for this navigation. |
HasField(FieldInfo, Boolean)
Sets the backing field to use for this navigation.
public Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionSkipNavigationBuilder HasField (System.Reflection.FieldInfo fieldInfo, bool fromDataAnnotation = false);
public Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionSkipNavigationBuilder? HasField (System.Reflection.FieldInfo? fieldInfo, bool fromDataAnnotation = false);
abstract member HasField : System.Reflection.FieldInfo * bool -> Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionSkipNavigationBuilder
Public Function HasField (fieldInfo As FieldInfo, Optional fromDataAnnotation As Boolean = false) As IConventionSkipNavigationBuilder
Parameters
- fieldInfo
- FieldInfo
The field.
- 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)
Sets the backing field to use for this navigation.
public Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionSkipNavigationBuilder HasField (string fieldName, bool fromDataAnnotation = false);
public Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionSkipNavigationBuilder? HasField (string? fieldName, bool fromDataAnnotation = false);
abstract member HasField : string * bool -> Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionSkipNavigationBuilder
Public Function HasField (fieldName As String, Optional fromDataAnnotation As Boolean = false) As IConventionSkipNavigationBuilder
Parameters
- fieldName
- String
The field name.
- 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
Entity Framework