Share via


CosmosManyToManyJoinEntityTypeConvention クラス

定義

多対多リレーションシップの結合エンティティ型を作成し、関連する型が 1 つを共有する場合にパーティション キーを追加する規則。

public class CosmosManyToManyJoinEntityTypeConvention : Microsoft.EntityFrameworkCore.Metadata.Conventions.ManyToManyJoinEntityTypeConvention, Microsoft.EntityFrameworkCore.Metadata.Conventions.IEntityTypeAnnotationChangedConvention
type CosmosManyToManyJoinEntityTypeConvention = class
    inherit ManyToManyJoinEntityTypeConvention
    interface IEntityTypeAnnotationChangedConvention
    interface IConvention
Public Class CosmosManyToManyJoinEntityTypeConvention
Inherits ManyToManyJoinEntityTypeConvention
Implements IEntityTypeAnnotationChangedConvention
継承
CosmosManyToManyJoinEntityTypeConvention
実装

注釈

詳細と例については、「 モデルの構築規則」および「 EF Core を使用した Azure Cosmos DB へのアクセス 」を参照してください。

コンストラクター

CosmosManyToManyJoinEntityTypeConvention(ProviderConventionSetBuilderDependencies)

CosmosManyToManyJoinEntityTypeConvention の新しいインスタンスを作成します。

プロパティ

Dependencies

このサービスの依存関係。

(継承元 ManyToManyJoinEntityTypeConvention)

メソッド

CreateJoinEntityType(String, IConventionSkipNavigation)

結合エンティティ型を作成し、対応する外部キーを構成します。

CreateSkipNavigationForeignKey(IConventionSkipNavigation, IConventionEntityTypeBuilder)

指定されたスキップ ナビゲーションで使用される、指定されたエンティティ型に外部キーを作成します。

(継承元 ManyToManyJoinEntityTypeConvention)
GenerateJoinTypeName(IConventionSkipNavigation)

新しいジョイント エンティティ型の一意の名前を生成します。

(継承元 ManyToManyJoinEntityTypeConvention)
ProcessEntityTypeAnnotationChanged(IConventionEntityTypeBuilder, String, IConventionAnnotation, IConventionAnnotation, IConventionContext<IConventionAnnotation>)

エンティティ型で注釈が変更された後に呼び出されます。

ProcessSkipNavigationAdded(IConventionSkipNavigationBuilder, IConventionContext<IConventionSkipNavigationBuilder>)

スキップ ナビゲーションがエンティティ型に追加された後に呼び出されます。

(継承元 ManyToManyJoinEntityTypeConvention)
ProcessSkipNavigationForeignKeyChanged(IConventionSkipNavigationBuilder, IConventionForeignKey, IConventionForeignKey, IConventionContext<IConventionForeignKey>)

多対多リレーションシップの結合エンティティ型を作成し、関連する型が 1 つを共有する場合にパーティション キーを追加する規則。

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

スキップ ナビゲーションの逆が変更された後に呼び出されます。

(継承元 ManyToManyJoinEntityTypeConvention)
ProcessSkipNavigationRemoved(IConventionEntityTypeBuilder, IConventionSkipNavigation, IConventionContext<IConventionSkipNavigation>)

スキップ ナビゲーションがエンティティ型から削除された後に呼び出されます。

(継承元 ManyToManyJoinEntityTypeConvention)
ShouldCreateJoinType(IConventionSkipNavigation)

新しい結合エンティティ型が必要かどうかを確認します。

(継承元 ManyToManyJoinEntityTypeConvention)

適用対象