RelationalEntityTypeExtensions.GetViewName Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
GetViewName(IEntityType) |
Returns the name of the view to which the entity type is mapped or |
GetViewName(IReadOnlyEntityType) |
Returns the name of the view to which the entity type is mapped or |
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
Entity Framework