RelationshipDiscoveryConvention.ProcessNavigationAdded 方法

定义

重载

ProcessNavigationAdded(IConventionNavigationBuilder, IConventionContext<IConventionNavigationBuilder>)

在将导航添加到实体类型后调用。

ProcessNavigationAdded(IConventionRelationshipBuilder, IConventionNavigation, IConventionContext<IConventionNavigation>)

在将导航添加到实体类型后调用。

ProcessNavigationAdded(IConventionNavigationBuilder, IConventionContext<IConventionNavigationBuilder>)

Source:
RelationshipDiscoveryConvention.cs
Source:
RelationshipDiscoveryConvention.cs
Source:
RelationshipDiscoveryConvention.cs
Source:
RelationshipDiscoveryConvention.cs
Source:
RelationshipDiscoveryConvention.cs

在将导航添加到实体类型后调用。

public virtual void ProcessNavigationAdded (Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionNavigationBuilder navigationBuilder, Microsoft.EntityFrameworkCore.Metadata.Conventions.IConventionContext<Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionNavigationBuilder> context);
abstract member ProcessNavigationAdded : Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionNavigationBuilder * Microsoft.EntityFrameworkCore.Metadata.Conventions.IConventionContext<Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionNavigationBuilder> -> unit
override this.ProcessNavigationAdded : Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionNavigationBuilder * Microsoft.EntityFrameworkCore.Metadata.Conventions.IConventionContext<Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionNavigationBuilder> -> unit
Public Overridable Sub ProcessNavigationAdded (navigationBuilder As IConventionNavigationBuilder, context As IConventionContext(Of IConventionNavigationBuilder))

参数

navigationBuilder
IConventionNavigationBuilder

导航的生成器。

context
IConventionContext<IConventionNavigationBuilder>

与约定执行关联的其他信息。

实现

适用于

ProcessNavigationAdded(IConventionRelationshipBuilder, IConventionNavigation, IConventionContext<IConventionNavigation>)

Source:
RelationshipDiscoveryConvention.cs
Source:
RelationshipDiscoveryConvention.cs

在将导航添加到实体类型后调用。

public virtual void ProcessNavigationAdded (Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionRelationshipBuilder relationshipBuilder, Microsoft.EntityFrameworkCore.Metadata.IConventionNavigation navigation, Microsoft.EntityFrameworkCore.Metadata.Conventions.IConventionContext<Microsoft.EntityFrameworkCore.Metadata.IConventionNavigation> context);
abstract member ProcessNavigationAdded : Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionRelationshipBuilder * Microsoft.EntityFrameworkCore.Metadata.IConventionNavigation * Microsoft.EntityFrameworkCore.Metadata.Conventions.IConventionContext<Microsoft.EntityFrameworkCore.Metadata.IConventionNavigation> -> unit
override this.ProcessNavigationAdded : Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionRelationshipBuilder * Microsoft.EntityFrameworkCore.Metadata.IConventionNavigation * Microsoft.EntityFrameworkCore.Metadata.Conventions.IConventionContext<Microsoft.EntityFrameworkCore.Metadata.IConventionNavigation> -> unit
Public Overridable Sub ProcessNavigationAdded (relationshipBuilder As IConventionRelationshipBuilder, navigation As IConventionNavigation, context As IConventionContext(Of IConventionNavigation))

参数

relationshipBuilder
IConventionRelationshipBuilder

外键的生成器。

navigation
IConventionNavigation

导航。

context
IConventionContext<IConventionNavigation>

与约定执行关联的其他信息。

实现

适用于