RelationalEntityTypeExtensions.GetViewName Method

Definition

Overloads

GetViewName(IEntityType)

Returns the name of the view to which the entity type is mapped or null if not mapped to a view.

GetViewName(IReadOnlyEntityType)

Returns the name of the view to which the entity type is mapped or null if not mapped to a view.

GetViewName(IEntityType)

Returns the name of the view to which the entity type is mapped or null if not mapped to a view.

public static string GetViewName (this Microsoft.EntityFrameworkCore.Metadata.IEntityType entityType);
static member GetViewName : Microsoft.EntityFrameworkCore.Metadata.IEntityType -> string
<Extension()>
Public Function GetViewName (entityType As IEntityType) As String

Parameters

entityType
IEntityType

The entity type to get the view name for.

Returns

The name of the view to which the entity type is mapped.

Applies to

GetViewName(IReadOnlyEntityType)

Returns the name of the view to which the entity type is mapped or null if not mapped to a view.

public static string? GetViewName (this Microsoft.EntityFrameworkCore.Metadata.IReadOnlyEntityType entityType);
static member GetViewName : Microsoft.EntityFrameworkCore.Metadata.IReadOnlyEntityType -> string
<Extension()>
Public Function GetViewName (entityType As IReadOnlyEntityType) As String

Parameters

entityType
IReadOnlyEntityType

The entity type to get the view name for.

Returns

The name of the view to which the entity type is mapped.

Applies to