OwnedNavigationBuilder<TOwnerEntity,TDependentEntity>.Navigation Method

Definition

Overloads

Navigation<TNavigation>(Expression<Func<TDependentEntity,IEnumerable<TNavigation>>>)

Returns an object that can be used to configure an existing navigation property from the owned type to its owner. It is an error for the navigation property not to exist.

Navigation<TNavigation>(Expression<Func<TDependentEntity,TNavigation>>)

Returns an object that can be used to configure an existing navigation property from the owned type to its owner. It is an error for the navigation property not to exist.

Navigation<TNavigation>(Expression<Func<TDependentEntity,IEnumerable<TNavigation>>>)

Returns an object that can be used to configure an existing navigation property from the owned type to its owner. It is an error for the navigation property not to exist.

public virtual Microsoft.EntityFrameworkCore.Metadata.Builders.NavigationBuilder<TDependentEntity,TNavigation> Navigation<TNavigation> (System.Linq.Expressions.Expression<Func<TDependentEntity,System.Collections.Generic.IEnumerable<TNavigation>>> navigationExpression) where TNavigation : class;
public virtual Microsoft.EntityFrameworkCore.Metadata.Builders.NavigationBuilder<TDependentEntity,TNavigation> Navigation<TNavigation> (System.Linq.Expressions.Expression<Func<TDependentEntity,System.Collections.Generic.IEnumerable<TNavigation>?>> navigationExpression) where TNavigation : class;
override this.Navigation : System.Linq.Expressions.Expression<Func<'DependentEntity, seq<'Navigation>>> -> Microsoft.EntityFrameworkCore.Metadata.Builders.NavigationBuilder<'DependentEntity, 'Navigation (requires 'DependentEntity : null and 'Navigation : null)> (requires 'Navigation : null)
Public Overridable Function Navigation(Of TNavigation As Class) (navigationExpression As Expression(Of Func(Of TDependentEntity, IEnumerable(Of TNavigation)))) As NavigationBuilder(Of TDependentEntity, TNavigation)

Type Parameters

TNavigation

The target entity type.

Parameters

navigationExpression
Expression<Func<TDependentEntity,IEnumerable<TNavigation>>>

A lambda expression representing the navigation property to be configured ( blog => blog.Posts).

Returns

NavigationBuilder<TDependentEntity,TNavigation>

An object that can be used to configure the navigation property.

Applies to

Navigation<TNavigation>(Expression<Func<TDependentEntity,TNavigation>>)

Returns an object that can be used to configure an existing navigation property from the owned type to its owner. It is an error for the navigation property not to exist.

public virtual Microsoft.EntityFrameworkCore.Metadata.Builders.NavigationBuilder<TDependentEntity,TNavigation> Navigation<TNavigation> (System.Linq.Expressions.Expression<Func<TDependentEntity,TNavigation>> navigationExpression) where TNavigation : class;
public virtual Microsoft.EntityFrameworkCore.Metadata.Builders.NavigationBuilder<TDependentEntity,TNavigation> Navigation<TNavigation> (System.Linq.Expressions.Expression<Func<TDependentEntity,TNavigation?>> navigationExpression) where TNavigation : class;
override this.Navigation : System.Linq.Expressions.Expression<Func<'DependentEntity, 'Navigation>> -> Microsoft.EntityFrameworkCore.Metadata.Builders.NavigationBuilder<'DependentEntity, 'Navigation (requires 'DependentEntity : null and 'Navigation : null)> (requires 'Navigation : null)
Public Overridable Function Navigation(Of TNavigation As Class) (navigationExpression As Expression(Of Func(Of TDependentEntity, TNavigation))) As NavigationBuilder(Of TDependentEntity, TNavigation)

Type Parameters

TNavigation

The target entity type.

Parameters

navigationExpression
Expression<Func<TDependentEntity,TNavigation>>

A lambda expression representing the navigation property to be configured ( blog => blog.Posts).

Returns

NavigationBuilder<TDependentEntity,TNavigation>

An object that can be used to configure the navigation property.

Applies to