KeyDiscoveryConvention.ProcessForeignKeyPropertiesChanged 方法

定义

重载

ProcessForeignKeyPropertiesChanged(IConventionRelationshipBuilder, IReadOnlyList<IConventionProperty>, IConventionKey, IConventionContext<IConventionRelationshipBuilder>)

在更改外键属性或主体键后调用。

ProcessForeignKeyPropertiesChanged(IConventionForeignKeyBuilder, IReadOnlyList<IConventionProperty>, IConventionKey, IConventionContext<IReadOnlyList<IConventionProperty>>)

在更改外键属性或主体键后调用。

ProcessForeignKeyPropertiesChanged(IConventionRelationshipBuilder, IReadOnlyList<IConventionProperty>, IConventionKey, IConventionContext<IConventionRelationshipBuilder>)

在更改外键属性或主体键后调用。

public virtual void ProcessForeignKeyPropertiesChanged (Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionRelationshipBuilder relationshipBuilder, System.Collections.Generic.IReadOnlyList<Microsoft.EntityFrameworkCore.Metadata.IConventionProperty> oldDependentProperties, Microsoft.EntityFrameworkCore.Metadata.IConventionKey oldPrincipalKey, Microsoft.EntityFrameworkCore.Metadata.Conventions.IConventionContext<Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionRelationshipBuilder> context);
abstract member ProcessForeignKeyPropertiesChanged : Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionRelationshipBuilder * System.Collections.Generic.IReadOnlyList<Microsoft.EntityFrameworkCore.Metadata.IConventionProperty> * Microsoft.EntityFrameworkCore.Metadata.IConventionKey * Microsoft.EntityFrameworkCore.Metadata.Conventions.IConventionContext<Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionRelationshipBuilder> -> unit
override this.ProcessForeignKeyPropertiesChanged : Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionRelationshipBuilder * System.Collections.Generic.IReadOnlyList<Microsoft.EntityFrameworkCore.Metadata.IConventionProperty> * Microsoft.EntityFrameworkCore.Metadata.IConventionKey * Microsoft.EntityFrameworkCore.Metadata.Conventions.IConventionContext<Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionRelationshipBuilder> -> unit
Public Overridable Sub ProcessForeignKeyPropertiesChanged (relationshipBuilder As IConventionRelationshipBuilder, oldDependentProperties As IReadOnlyList(Of IConventionProperty), oldPrincipalKey As IConventionKey, context As IConventionContext(Of IConventionRelationshipBuilder))

参数

relationshipBuilder
IConventionRelationshipBuilder

外键的生成器。

oldDependentProperties
IReadOnlyList<IConventionProperty>

旧的外键属性。

oldPrincipalKey
IConventionKey

旧的主体键。

context
IConventionContext<IConventionRelationshipBuilder>

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

实现

适用于

ProcessForeignKeyPropertiesChanged(IConventionForeignKeyBuilder, IReadOnlyList<IConventionProperty>, IConventionKey, IConventionContext<IReadOnlyList<IConventionProperty>>)

在更改外键属性或主体键后调用。

public virtual void ProcessForeignKeyPropertiesChanged (Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionForeignKeyBuilder relationshipBuilder, System.Collections.Generic.IReadOnlyList<Microsoft.EntityFrameworkCore.Metadata.IConventionProperty> oldDependentProperties, Microsoft.EntityFrameworkCore.Metadata.IConventionKey oldPrincipalKey, Microsoft.EntityFrameworkCore.Metadata.Conventions.IConventionContext<System.Collections.Generic.IReadOnlyList<Microsoft.EntityFrameworkCore.Metadata.IConventionProperty>> context);
abstract member ProcessForeignKeyPropertiesChanged : Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionForeignKeyBuilder * System.Collections.Generic.IReadOnlyList<Microsoft.EntityFrameworkCore.Metadata.IConventionProperty> * Microsoft.EntityFrameworkCore.Metadata.IConventionKey * Microsoft.EntityFrameworkCore.Metadata.Conventions.IConventionContext<System.Collections.Generic.IReadOnlyList<Microsoft.EntityFrameworkCore.Metadata.IConventionProperty>> -> unit
override this.ProcessForeignKeyPropertiesChanged : Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionForeignKeyBuilder * System.Collections.Generic.IReadOnlyList<Microsoft.EntityFrameworkCore.Metadata.IConventionProperty> * Microsoft.EntityFrameworkCore.Metadata.IConventionKey * Microsoft.EntityFrameworkCore.Metadata.Conventions.IConventionContext<System.Collections.Generic.IReadOnlyList<Microsoft.EntityFrameworkCore.Metadata.IConventionProperty>> -> unit
Public Overridable Sub ProcessForeignKeyPropertiesChanged (relationshipBuilder As IConventionForeignKeyBuilder, oldDependentProperties As IReadOnlyList(Of IConventionProperty), oldPrincipalKey As IConventionKey, context As IConventionContext(Of IReadOnlyList(Of IConventionProperty)))

参数

relationshipBuilder
IConventionForeignKeyBuilder

外键的生成器。

oldDependentProperties
IReadOnlyList<IConventionProperty>

旧的外键属性。

oldPrincipalKey
IConventionKey

旧的主体键。

context
IConventionContext<IReadOnlyList<IConventionProperty>>

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

实现

适用于