RelationalEntityTypeExtensions.GetSqlQuery 方法

定义

重载

GetSqlQuery(IReadOnlyEntityType)

返回用于为实体类型提供数据的 SQL 字符串,如果未 null 映射到 SQL 字符串,则返回 。

GetSqlQuery(IEntityType)

返回用于为实体类型提供数据的 SQL 字符串,如果未 null 映射到 SQL 字符串,则返回 。

GetSqlQuery(IReadOnlyEntityType)

返回用于为实体类型提供数据的 SQL 字符串,如果未 null 映射到 SQL 字符串,则返回 。

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

参数

entityType
IReadOnlyEntityType

实体类型。

返回

用于为实体类型提供数据的 SQL 字符串。

适用于

GetSqlQuery(IEntityType)

返回用于为实体类型提供数据的 SQL 字符串,如果未 null 映射到 SQL 字符串,则返回 。

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

参数

entityType
IEntityType

实体类型。

返回

用于为实体类型提供数据的 SQL 字符串。

适用于