IConventionSkipNavigationBuilder.HasField 方法

定义

重载

HasField(FieldInfo, Boolean)

设置用于此导航的后备字段。

HasField(String, Boolean)

设置用于此导航的后备字段。

HasField(FieldInfo, Boolean)

Source:
IConventionSkipNavigationBuilder.cs

设置用于此导航的后备字段。

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

参数

fieldInfo
FieldInfo

字段。

fromDataAnnotation
Boolean

指示配置是否是使用数据注释指定的。

返回

如果应用了配置,则为同一生成器实例, null 否则为 。

适用于

HasField(String, Boolean)

Source:
IConventionSkipNavigationBuilder.cs

设置用于此导航的后备字段。

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

参数

fieldName
String

字段名。

fromDataAnnotation
Boolean

指示配置是否是使用数据注释指定的。

返回

如果应用了配置,则为同一生成器实例, null 否则为 。

适用于