ManyToManyJoinEntityTypeConvention Sınıf

Tanım

Eşleşen atlama gezginlerini belirten ve otomatik olarak uygun yabancı anahtarlarla çoktan çoğa bir JOIN varlığı oluşturan bir kural, bu yabancı anahtarları kullanmak için iki eşleşen atlama görünümünü ayarlar.

public class ManyToManyJoinEntityTypeConvention : Microsoft.EntityFrameworkCore.Metadata.Conventions.ISkipNavigationAddedConvention, Microsoft.EntityFrameworkCore.Metadata.Conventions.ISkipNavigationForeignKeyChangedConvention, Microsoft.EntityFrameworkCore.Metadata.Conventions.ISkipNavigationInverseChangedConvention, Microsoft.EntityFrameworkCore.Metadata.Conventions.ISkipNavigationRemovedConvention
type ManyToManyJoinEntityTypeConvention = class
    interface ISkipNavigationAddedConvention
    interface IConvention
    interface ISkipNavigationInverseChangedConvention
    interface ISkipNavigationForeignKeyChangedConvention
    interface ISkipNavigationRemovedConvention
Public Class ManyToManyJoinEntityTypeConvention
Implements ISkipNavigationAddedConvention, ISkipNavigationForeignKeyChangedConvention, ISkipNavigationInverseChangedConvention, ISkipNavigationRemovedConvention
Devralma
ManyToManyJoinEntityTypeConvention
Türetilmiş
Uygulamalar

Açıklamalar

Daha fazla bilgi için bkz. model yapı kuralları .

Oluşturucular

ManyToManyJoinEntityTypeConvention(ProviderConventionSetBuilderDependencies)

ManyToManyJoinEntityTypeConvention öğesinin yeni bir örneğini oluşturur.

Özellikler

Dependencies

Bu hizmet için bağımlılıklar.

Yöntemler

CreateJoinEntityType(String, IConventionSkipNavigation)

Bir JOIN varlık türü oluşturun ve karşılık gelen yabancı anahtarları yapılandırır.

CreateSkipNavigationForeignKey(IConventionSkipNavigation, IConventionEntityTypeBuilder)

Verili atlama gezintisi tarafından kullanılacak olan varlık türünde bir yabancı anahtar oluşturur.

GenerateJoinTypeName(IConventionSkipNavigation)

Yeni Birleşik varlık türü için benzersiz bir ad oluşturur.

ProcessSkipNavigationAdded(IConventionSkipNavigationBuilder, IConventionContext<IConventionSkipNavigationBuilder>)

Bir atlama gezintisi varlık türüne eklendikten sonra çağırılır.

ProcessSkipNavigationForeignKeyChanged(IConventionSkipNavigationBuilder, IConventionForeignKey, IConventionForeignKey, IConventionContext<IConventionForeignKey>)

Gezinti atla tersi değiştirildikten sonra çağrılır.

ProcessSkipNavigationInverseChanged(IConventionSkipNavigationBuilder, IConventionSkipNavigation, IConventionSkipNavigation, IConventionContext<IConventionSkipNavigation>)

Bir atlama gezintisi ters değiştirildikten sonra çağırılır.

ProcessSkipNavigationRemoved(IConventionEntityTypeBuilder, IConventionSkipNavigation, IConventionContext<IConventionSkipNavigation>)

Bir atlama gezintisi varlık türünden kaldırıldıktan sonra çağırılır.

ShouldCreateJoinType(IConventionSkipNavigation)

Yeni bir JOIN türü gerekip gerekmediğini denetler.

Şunlara uygulanır