Language

CosmosRelationshipDiscoveryConvention クラス

定義

対応する逆ナビゲーションがあいまいでない限り、ナビゲーション プロパティに基づいてエンティティ型間のリレーションシップを構成する規則。 すべてのナビゲーションは、Cosmos の所有エンティティ型を対象とするものと見なされます。

[System.Runtime.CompilerServices.Nullable(0)]
public class CosmosRelationshipDiscoveryConvention : Microsoft.EntityFrameworkCore.Metadata.Conventions.RelationshipDiscoveryConvention
public class CosmosRelationshipDiscoveryConvention : Microsoft.EntityFrameworkCore.Metadata.Conventions.RelationshipDiscoveryConvention
[<System.Runtime.CompilerServices.Nullable(0)>]
type CosmosRelationshipDiscoveryConvention = class
    inherit RelationshipDiscoveryConvention
type CosmosRelationshipDiscoveryConvention = class
    inherit RelationshipDiscoveryConvention
Public Class CosmosRelationshipDiscoveryConvention
Inherits RelationshipDiscoveryConvention
継承
CosmosRelationshipDiscoveryConvention
属性

注釈

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

コンストラクター

Name 説明
CosmosRelationshipDiscoveryConvention(ProviderConventionSetBuilderDependencies)

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

プロパティ

Name 説明
Dependencies

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

(継承元 RelationshipDiscoveryConvention)
UseAttributes

規則がメンバーで見つかった属性を使用するかどうかを示す値。

(継承元 RelationshipDiscoveryConvention)

メソッド

Name 説明
DiscoverRelationships(IConventionEntityTypeBuilder, IConventionContext, Boolean)

指定されたエンティティ型のリレーションシップを検出します。

(継承元 RelationshipDiscoveryConvention)
ProcessEntityTypeAdded(IConventionEntityTypeBuilder, IConventionContext<IConventionEntityTypeBuilder>)

エンティティ型がモデルに追加された後に呼び出されます。

(継承元 RelationshipDiscoveryConvention)
ProcessEntityTypeBaseTypeChanged(IConventionEntityTypeBuilder, IConventionEntityType, IConventionEntityType, IConventionContext<IConventionEntityType>)

エンティティ型の基本型が変更された後に呼び出されます。

(継承元 RelationshipDiscoveryConvention)
ProcessEntityTypeIgnored(IConventionModelBuilder, String, Type, IConventionContext<String>)

エンティティ型が無視された後に呼び出されます。

(継承元 RelationshipDiscoveryConvention)
ProcessEntityTypeMemberIgnored(IConventionEntityTypeBuilder, String, IConventionContext<String>)

エンティティ型メンバーが無視された後に呼び出されます。

(継承元 RelationshipDiscoveryConvention)
ProcessForeignKeyNullNavigationSet(IConventionForeignKeyBuilder, Boolean, IConventionContext<IConventionNavigation>)

ナビゲーションが外部キーの null に設定された後に呼び出されます。

(継承元 RelationshipDiscoveryConvention)
ProcessForeignKeyOwnershipChanged(IConventionForeignKeyBuilder, IConventionContext<Nullable<Boolean>>)

外部キーの所有権の値が変更された後に呼び出されます。

(継承元 RelationshipDiscoveryConvention)
ProcessForeignKeyRemoved(IConventionEntityTypeBuilder, IConventionForeignKey, IConventionContext<IConventionForeignKey>)

外部キーが削除された後に呼び出されます。

(継承元 RelationshipDiscoveryConvention)
ProcessNavigationAdded(IConventionNavigationBuilder, IConventionContext<IConventionNavigationBuilder>)

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

(継承元 RelationshipDiscoveryConvention)
ProcessNavigationRemoved(IConventionEntityTypeBuilder, IConventionEntityTypeBuilder, String, MemberInfo, IConventionContext<String>)

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

(継承元 RelationshipDiscoveryConvention)
ProcessTypeIgnored(IConventionModelBuilder, String, Type, IConventionContext<String>)

エンティティ型が無視された後に呼び出されます。

(継承元 RelationshipDiscoveryConvention)
ShouldBeOwned(Type, IConventionModel)

指定されたエンティティ型が現在モデル内にない場合に所有型として追加する必要があるかどうかを示す値を返します。

ShouldBeOwnedType(Type, IConventionModel)

指定されたエンティティ型が現在モデル内にない場合に所有型として追加する必要があるかどうかを示す値を返します。

TryGetTargetEntityTypeBuilder(IConventionEntityTypeBuilder, Type, MemberInfo, Nullable<Boolean>, Boolean)

特定のナビゲーション メンバーのエンティティ型ターゲットを検索または作成しようとします。

(継承元 RelationshipDiscoveryConvention)

適用対象