RelationalEntityTypeExtensions.GetSqlQuery 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
GetSqlQuery(IReadOnlyEntityType) |
Returns the SQL string used to provide data for the entity type or |
GetSqlQuery(IEntityType) |
Returns the SQL string used to provide data for the entity type or |
GetSqlQuery(IReadOnlyEntityType)
Returns the SQL string used to provide data for the entity type or null
if not mapped to a SQL string.
public static string? GetSqlQuery (this Microsoft.EntityFrameworkCore.Metadata.IReadOnlyEntityType entityType);
static member GetSqlQuery : Microsoft.EntityFrameworkCore.Metadata.IReadOnlyEntityType -> string
<Extension()>
Public Function GetSqlQuery (entityType As IReadOnlyEntityType) As String
Parameters
- entityType
- IReadOnlyEntityType
The entity type.
Returns
The SQL string used to provide data for the entity type.
Applies to
GetSqlQuery(IEntityType)
Returns the SQL string used to provide data for the entity type or null
if not mapped to a SQL string.
public static string GetSqlQuery (this Microsoft.EntityFrameworkCore.Metadata.IEntityType entityType);
static member GetSqlQuery : Microsoft.EntityFrameworkCore.Metadata.IEntityType -> string
<Extension()>
Public Function GetSqlQuery (entityType As IEntityType) As String
Parameters
- entityType
- IEntityType
The entity type.
Returns
The SQL string used to provide data for the entity type.
Applies to
Entity Framework