Language

KeyComplexPropertyConvention クラス

定義

キー値を計算するには、このようなプロパティの値を使用できる必要があるため、必要に応じてキーによって使用されるプロパティへのパス内のすべての複合プロパティをマークする規則。

[System.Runtime.CompilerServices.Nullable(0)]
public class KeyComplexPropertyConvention : Microsoft.EntityFrameworkCore.Metadata.Conventions.IKeyAddedConvention, Microsoft.EntityFrameworkCore.Metadata.Conventions.IKeyRemovedConvention
[<System.Runtime.CompilerServices.Nullable(0)>]
type KeyComplexPropertyConvention = class
    interface IKeyAddedConvention
    interface IConvention
    interface IKeyRemovedConvention
Public Class KeyComplexPropertyConvention
Implements IKeyAddedConvention, IKeyRemovedConvention
継承
KeyComplexPropertyConvention
属性
実装

注釈

最後の参照キーが削除されると、他のキーがチェーンを使用し続けず、ユーザーによって明示的な構成が適用されていない限り、ここで適用される暗黙的な null 非許容構成は元に戻されます。

詳細と例については、「 モデル構築規則 」を参照してください。

コンストラクター

Name 説明
KeyComplexPropertyConvention(ProviderConventionSetBuilderDependencies)

キー値を計算するには、このようなプロパティの値を使用できる必要があるため、必要に応じてキーによって使用されるプロパティへのパス内のすべての複合プロパティをマークする規則。

プロパティ

Name 説明
Dependencies

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

メソッド

Name 説明
ProcessKeyAdded(IConventionKeyBuilder, IConventionContext<IConventionKeyBuilder>)

エンティティ型にキーが追加された後に呼び出されます。

ProcessKeyRemoved(IConventionEntityTypeBuilder, IConventionKey, IConventionContext<IConventionKey>)

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

適用対象