Partilhar via


RequiredNavigationAttributeConvention.ProcessNavigationAdded Method

Definition

Overloads

ProcessNavigationAdded(IConventionNavigationBuilder, RequiredAttribute, IConventionContext<IConventionNavigationBuilder>)

Called after a navigation property that has an attribute is added to an entity type.

ProcessNavigationAdded(IConventionRelationshipBuilder, IConventionNavigation, RequiredAttribute, IConventionContext<IConventionNavigation>)

Called after a navigation property that has an attribute is added to an entity type.

ProcessNavigationAdded(IConventionNavigationBuilder, RequiredAttribute, IConventionContext<IConventionNavigationBuilder>)

Source:
RequiredNavigationAttributeConvention.cs
Source:
RequiredNavigationAttributeConvention.cs
Source:
RequiredNavigationAttributeConvention.cs
Source:
RequiredNavigationAttributeConvention.cs
Source:
RequiredNavigationAttributeConvention.cs

Called after a navigation property that has an attribute is added to an entity type.

public override void ProcessNavigationAdded (Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionNavigationBuilder navigationBuilder, System.ComponentModel.DataAnnotations.RequiredAttribute attribute, Microsoft.EntityFrameworkCore.Metadata.Conventions.IConventionContext<Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionNavigationBuilder> context);
override this.ProcessNavigationAdded : Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionNavigationBuilder * System.ComponentModel.DataAnnotations.RequiredAttribute * Microsoft.EntityFrameworkCore.Metadata.Conventions.IConventionContext<Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionNavigationBuilder> -> unit
Public Overrides Sub ProcessNavigationAdded (navigationBuilder As IConventionNavigationBuilder, attribute As RequiredAttribute, context As IConventionContext(Of IConventionNavigationBuilder))

Parameters

navigationBuilder
IConventionNavigationBuilder

The builder for the navigation.

attribute
RequiredAttribute

The attribute.

context
IConventionContext<IConventionNavigationBuilder>

Additional information associated with convention execution.

Applies to

ProcessNavigationAdded(IConventionRelationshipBuilder, IConventionNavigation, RequiredAttribute, IConventionContext<IConventionNavigation>)

Source:
RequiredNavigationAttributeConvention.cs
Source:
RequiredNavigationAttributeConvention.cs

Called after a navigation property that has an attribute is added to an entity type.

public override void ProcessNavigationAdded (Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionRelationshipBuilder relationshipBuilder, Microsoft.EntityFrameworkCore.Metadata.IConventionNavigation navigation, System.ComponentModel.DataAnnotations.RequiredAttribute attribute, Microsoft.EntityFrameworkCore.Metadata.Conventions.IConventionContext<Microsoft.EntityFrameworkCore.Metadata.IConventionNavigation> context);
override this.ProcessNavigationAdded : Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionRelationshipBuilder * Microsoft.EntityFrameworkCore.Metadata.IConventionNavigation * System.ComponentModel.DataAnnotations.RequiredAttribute * Microsoft.EntityFrameworkCore.Metadata.Conventions.IConventionContext<Microsoft.EntityFrameworkCore.Metadata.IConventionNavigation> -> unit
Public Overrides Sub ProcessNavigationAdded (relationshipBuilder As IConventionRelationshipBuilder, navigation As IConventionNavigation, attribute As RequiredAttribute, context As IConventionContext(Of IConventionNavigation))

Parameters

relationshipBuilder
IConventionRelationshipBuilder

The builder for the relationship.

navigation
IConventionNavigation

The navigation.

attribute
RequiredAttribute

The attribute.

context
IConventionContext<IConventionNavigation>

Additional information associated with convention execution.

Applies to