Language

RelationalKeyDiscoveryConvention クラス

定義

KeyDiscoveryConventionから継承するリレーショナル固有の規則。

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

注釈

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

コンストラクター

Name 説明
RelationalKeyDiscoveryConvention(ProviderConventionSetBuilderDependencies, RelationalConventionSetBuilderDependencies)

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

フィールド

Name 説明
SynthesizedOrdinalPropertyName

これは、パブリック API と同じ互換性標準の対象ではなく、Entity Framework Core インフラストラクチャをサポートする内部 API です。 これは、任意のリリースで予告なしに変更または削除される可能性があります。 コード内で直接使用する場合は、細心の注意を払う必要があります。これを行うと、新しいEntity Framework Core リリースに更新するときにアプリケーションのエラーが発生する可能性があることを認識してください。

プロパティ

Name 説明
Dependencies

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

(継承元 KeyDiscoveryConvention)
RelationalDependencies

このサービスのリレーショナル プロバイダー固有の依存関係。

メソッド

Name 説明
DiscoverKeyProperties(IConventionEntityType)

主キーに使用するプロパティを返します。

ProcessEntityTypeAdded(IConventionEntityTypeBuilder, IConventionContext<IConventionEntityTypeBuilder>)

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

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

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

ProcessEntityTypeBaseTypeChanged(IConventionEntityTypeBuilder, IConventionEntityType, IConventionEntityType, IConventionContext<IConventionEntityType>)

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

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

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

(継承元 KeyDiscoveryConvention)
ProcessForeignKeyAdded(IConventionForeignKeyBuilder, IConventionContext<IConventionForeignKeyBuilder>)

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

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

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

(継承元 KeyDiscoveryConvention)
ProcessForeignKeyPropertiesChanged(IConventionForeignKeyBuilder, IReadOnlyList<IConventionProperty>, IConventionKey, IConventionContext<IReadOnlyList<IConventionProperty>>)

外部キーのプロパティまたはプリンシパル キーが変更された後に呼び出されます。

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

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

(継承元 KeyDiscoveryConvention)
ProcessForeignKeyUniquenessChanged(IConventionForeignKeyBuilder, IConventionContext<Nullable<Boolean>>)

外部キーの一意性が変更された後に呼び出されます。

(継承元 KeyDiscoveryConvention)
ProcessKeyProperties(IList<IConventionProperty>, IConventionEntityType)

主キーに使用するプロパティを追加または削除します。

ProcessKeyRemoved(IConventionEntityTypeBuilder, IConventionKey, IConventionContext<IConventionKey>)

これは、パブリック API と同じ互換性標準の対象ではなく、Entity Framework Core インフラストラクチャをサポートする内部 API です。 これは、任意のリリースで予告なしに変更または削除される可能性があります。 コード内で直接使用する場合は、細心の注意を払う必要があります。これを行うと、新しいEntity Framework Core リリースに更新するときにアプリケーションのエラーが発生する可能性があることを認識してください。

(継承元 KeyDiscoveryConvention)
ProcessPropertyAdded(IConventionPropertyBuilder, IConventionContext<IConventionPropertyBuilder>)

プロパティがエンティティ型に追加された後に呼び出されます。

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

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

(継承元 KeyDiscoveryConvention)
ShouldDiscoverKeyProperties(IConventionEntityType)

エンティティ型のキー プロパティを検出するかどうかを決定します。

(継承元 KeyDiscoveryConvention)
TryConfigurePrimaryKey(IConventionEntityTypeBuilder)

主キー候補を検出し、見つかった場合は主キーを構成します。

(継承元 KeyDiscoveryConvention)

適用対象