MutableNavigationExtensions.GetTargetType(IMutableNavigation) Method

Definition

Caution

Use IMutableNavigation.TargetEntityType

Gets the entity type that a given navigation property will hold an instance of (or hold instances of if it is a collection navigation).

public static Microsoft.EntityFrameworkCore.Metadata.IMutableEntityType GetTargetType (this Microsoft.EntityFrameworkCore.Metadata.IMutableNavigation navigation);
[System.Obsolete("Use IMutableNavigation.TargetEntityType")]
public static Microsoft.EntityFrameworkCore.Metadata.IMutableEntityType GetTargetType (this Microsoft.EntityFrameworkCore.Metadata.IMutableNavigation navigation);
static member GetTargetType : Microsoft.EntityFrameworkCore.Metadata.IMutableNavigation -> Microsoft.EntityFrameworkCore.Metadata.IMutableEntityType
[<System.Obsolete("Use IMutableNavigation.TargetEntityType")>]
static member GetTargetType : Microsoft.EntityFrameworkCore.Metadata.IMutableNavigation -> Microsoft.EntityFrameworkCore.Metadata.IMutableEntityType
<Extension()>
Public Function GetTargetType (navigation As IMutableNavigation) As IMutableEntityType

Parameters

navigation
IMutableNavigation

The navigation property to find the target entity type of.

Returns

The target entity type.

Attributes

Applies to