NavigationBuilder.HasField(String) 方法

定义

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

public virtual Microsoft.EntityFrameworkCore.Metadata.Builders.NavigationBuilder HasField (string fieldName);
public virtual Microsoft.EntityFrameworkCore.Metadata.Builders.NavigationBuilder HasField (string? fieldName);
abstract member HasField : string -> Microsoft.EntityFrameworkCore.Metadata.Builders.NavigationBuilder
override this.HasField : string -> Microsoft.EntityFrameworkCore.Metadata.Builders.NavigationBuilder
Public Overridable Function HasField (fieldName As String) As NavigationBuilder

参数

fieldName
String

要用于此导航属性的字段的名称。

返回

同一生成器实例,以便可以链接多个配置调用。

适用于