InversePropertyAttributeConvention.ProcessNavigationAdded 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
ProcessNavigationAdded(IConventionNavigationBuilder, InversePropertyAttribute, IConventionContext<IConventionNavigationBuilder>)
System.Object.ProcessNavigationAdded(Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionNavigationBuilder,System.ComponentModel.DataAnnotations.Schema.InversePropertyAttribute,Microsoft.EntityFrameworkCore.Metadata.Conventions.IConventionContext{Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionNavigationBuilder})
public override void ProcessNavigationAdded (Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionNavigationBuilder navigationBuilder, System.ComponentModel.DataAnnotations.Schema.InversePropertyAttribute attribute, Microsoft.EntityFrameworkCore.Metadata.Conventions.IConventionContext<Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionNavigationBuilder> context);
override this.ProcessNavigationAdded : Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionNavigationBuilder * System.ComponentModel.DataAnnotations.Schema.InversePropertyAttribute * Microsoft.EntityFrameworkCore.Metadata.Conventions.IConventionContext<Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionNavigationBuilder> -> unit
Public Overrides Sub ProcessNavigationAdded (navigationBuilder As IConventionNavigationBuilder, attribute As InversePropertyAttribute, context As IConventionContext(Of IConventionNavigationBuilder))
参数
- navigationBuilder
- IConventionNavigationBuilder
- attribute
- InversePropertyAttribute
适用于
ProcessNavigationAdded(IConventionRelationshipBuilder, IConventionNavigation, InversePropertyAttribute, IConventionContext<IConventionNavigation>)
在将具有 属性的导航属性添加到实体类型后调用。
public override void ProcessNavigationAdded (Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionRelationshipBuilder relationshipBuilder, Microsoft.EntityFrameworkCore.Metadata.IConventionNavigation navigation, System.ComponentModel.DataAnnotations.Schema.InversePropertyAttribute attribute, Microsoft.EntityFrameworkCore.Metadata.Conventions.IConventionContext<Microsoft.EntityFrameworkCore.Metadata.IConventionNavigation> context);
override this.ProcessNavigationAdded : Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionRelationshipBuilder * Microsoft.EntityFrameworkCore.Metadata.IConventionNavigation * System.ComponentModel.DataAnnotations.Schema.InversePropertyAttribute * Microsoft.EntityFrameworkCore.Metadata.Conventions.IConventionContext<Microsoft.EntityFrameworkCore.Metadata.IConventionNavigation> -> unit
Public Overrides Sub ProcessNavigationAdded (relationshipBuilder As IConventionRelationshipBuilder, navigation As IConventionNavigation, attribute As InversePropertyAttribute, context As IConventionContext(Of IConventionNavigation))
参数
- relationshipBuilder
- IConventionRelationshipBuilder
关系的生成器。
- navigation
- IConventionNavigation
导航。
- attribute
- InversePropertyAttribute
属性。
- context
- IConventionContext<IConventionNavigation>
与约定执行关联的其他信息。