語言

ValueGenerationConvention.ProcessForeignKeyPropertiesChanged 方法

定義

多載

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

來源:
ValueGenerationConvention.cs
來源:
ValueGenerationConvention.cs
來源:
ValueGenerationConvention.cs
來源:
ValueGenerationConvention.cs
來源:
ValueGenerationConvention.cs
來源:
ValueGenerationConvention.cs
來源:
ValueGenerationConvention.cs

在外鍵屬性或主鍵變更後被呼叫。

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>>

與大會執行相關的額外資訊。

實作

適用於

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

來源:
ValueGenerationConvention.cs
來源:
ValueGenerationConvention.cs

在外鍵屬性或主鍵變更後被呼叫。

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>

與大會執行相關的額外資訊。

實作

適用於