Language

NonNullableNavigationConvention クラス

定義

必要に応じて、プリンシパル エンティティ型への null 非許容ナビゲーションを構成する規則。

public class NonNullableNavigationConvention : Microsoft.EntityFrameworkCore.Metadata.Conventions.NonNullableConventionBase, Microsoft.EntityFrameworkCore.Metadata.Conventions.IForeignKeyPrincipalEndChangedConvention, Microsoft.EntityFrameworkCore.Metadata.Conventions.INavigationAddedConvention
public class NonNullableNavigationConvention : Microsoft.EntityFrameworkCore.Metadata.Conventions.NonNullableConventionBase, Microsoft.EntityFrameworkCore.Metadata.Conventions.INavigationAddedConvention
type NonNullableNavigationConvention = class
    inherit NonNullableConventionBase
    interface INavigationAddedConvention
    interface IConvention
    interface IForeignKeyPrincipalEndChangedConvention
type NonNullableNavigationConvention = class
    inherit NonNullableConventionBase
    interface INavigationAddedConvention
    interface IConvention
Public Class NonNullableNavigationConvention
Inherits NonNullableConventionBase
Implements IForeignKeyPrincipalEndChangedConvention, INavigationAddedConvention
Public Class NonNullableNavigationConvention
Inherits NonNullableConventionBase
Implements INavigationAddedConvention
継承
NonNullableNavigationConvention
実装

注釈

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

コンストラクター

Name 説明
NonNullableNavigationConvention(ProviderConventionSetBuilderDependencies)

必要に応じて、プリンシパル エンティティ型への null 非許容ナビゲーションを構成する規則。

プロパティ

Name 説明
Dependencies

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

(継承元 NonNullableConventionBase)

メソッド

Name 説明
IsNonNullableReferenceType(IConventionModelBuilder, MemberInfo)

メンバー型が null 非許容参照型かどうかを示す値を返します。

(継承元 NonNullableConventionBase)
ProcessForeignKeyPrincipalEndChanged(IConventionForeignKeyBuilder, IConventionContext<IConventionForeignKeyBuilder>)

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

ProcessModelFinalized(IConventionModelBuilder, IConventionContext<IConventionModelBuilder>)

モデルが完成した後に呼び出されます。 この規則で使用されるキャッシュ状態注釈を削除します。

(継承元 NonNullableConventionBase)
ProcessModelFinalizing(IConventionModelBuilder, IConventionContext<IConventionModelBuilder>)

モデルの最終処理時に呼び出されます。

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

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

ProcessNavigationAdded(IConventionRelationshipBuilder, IConventionNavigation, IConventionContext<IConventionNavigation>)

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

TryGetNullabilityInfo(IConventionModelBuilder, MemberInfo, NullabilityInfo)

メンバー型が null 非許容参照型かどうかを示す値を返します。

(継承元 NonNullableConventionBase)

適用対象