IConventionSkipNavigationBuilder.HasInverse 方法

定义

设置反向跳过导航。

public Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionSkipNavigationBuilder HasInverse (Microsoft.EntityFrameworkCore.Metadata.IConventionSkipNavigation inverse, bool fromDataAnnotation = false);
public Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionSkipNavigationBuilder? HasInverse (Microsoft.EntityFrameworkCore.Metadata.IConventionSkipNavigation? inverse, bool fromDataAnnotation = false);
abstract member HasInverse : Microsoft.EntityFrameworkCore.Metadata.IConventionSkipNavigation * bool -> Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionSkipNavigationBuilder
Public Function HasInverse (inverse As IConventionSkipNavigation, Optional fromDataAnnotation As Boolean = false) As IConventionSkipNavigationBuilder

参数

inverse
IConventionSkipNavigation

反跳过导航。 传递 null 将导致未定义反向导航属性。

fromDataAnnotation
Boolean

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

返回

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

适用于