NonNullableNavigationConvention Class

Definition

A convention that configures the non-nullable navigations to principal entity type as required.

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

Remarks

See Model building conventions for more information and examples.

Constructors

NonNullableNavigationConvention(ProviderConventionSetBuilderDependencies)

Creates a new instance of NonNullableNavigationConvention.

Properties

Dependencies

Dependencies for this service.

(Inherited from NonNullableConventionBase)

Methods

IsNonNullableReferenceType(IConventionModelBuilder, MemberInfo)

Returns a value indicating whether the member type is a non-nullable reference type.

(Inherited from NonNullableConventionBase)
ProcessForeignKeyPrincipalEndChanged(IConventionForeignKeyBuilder, IConventionContext<IConventionForeignKeyBuilder>)

Called after the principal end of a foreign key is changed.

ProcessModelFinalized(IConventionModelBuilder, IConventionContext<IConventionModelBuilder>)

Called after a model is finalized. Removes the cached state annotation used by this convention.

(Inherited from NonNullableConventionBase)
ProcessModelFinalizing(IConventionModelBuilder, IConventionContext<IConventionModelBuilder>)

Called when a model is being finalized.

(Inherited from NonNullableConventionBase)
ProcessNavigationAdded(IConventionNavigationBuilder, IConventionContext<IConventionNavigationBuilder>)

Called after a navigation is added to the entity type.

ProcessNavigationAdded(IConventionRelationshipBuilder, IConventionNavigation, IConventionContext<IConventionNavigation>)

Called after a navigation is added to the entity type.

TryGetNullabilityInfo(IConventionModelBuilder, MemberInfo, NullabilityInfo)

Returns a value indicating whether the member type is a non-nullable reference type.

(Inherited from NonNullableConventionBase)

Applies to