Bagikan melalui


RawSqlString Struktur

Definisi

Perhatian

For the execution of SQL queries using plain strings, use FromSqlRaw, ExecuteSqlRaw, or ExecuteSqlRawAsync instead. For the execution of SQL queries using interpolated string syntax to create parameters, use FromSqlInterpolated, ExecuteSqlInterpolated, or ExecuteSqlInterpolatedAsync instead.

String yang mewakili kueri SQL mentah. Jenis ini memungkinkan resolusi kelebihan beban antara reguler dan terinterpolasi FromSql<TEntity>(IQueryable<TEntity>, RawSqlString, Object[]) dan ExecuteSqlCommand(DatabaseFacade, RawSqlString, Object[])

public struct RawSqlString
public readonly struct RawSqlString
[System.Obsolete("For the execution of SQL queries using plain strings, use FromSqlRaw, ExecuteSqlRaw, or ExecuteSqlRawAsync instead. For the execution of SQL queries using interpolated string syntax to create parameters, use FromSqlInterpolated, ExecuteSqlInterpolated, or ExecuteSqlInterpolatedAsync instead.")]
[System.Runtime.CompilerServices.IsReadOnly]
public readonly struct RawSqlString
[System.Obsolete("For the execution of SQL queries using plain strings, use FromSqlRaw, ExecuteSqlRaw, or ExecuteSqlRawAsync instead. For the execution of SQL queries using interpolated string syntax to create parameters, use FromSqlInterpolated, ExecuteSqlInterpolated, or ExecuteSqlInterpolatedAsync instead.")]
public readonly struct RawSqlString
type RawSqlString = struct
[<System.Obsolete("For the execution of SQL queries using plain strings, use FromSqlRaw, ExecuteSqlRaw, or ExecuteSqlRawAsync instead. For the execution of SQL queries using interpolated string syntax to create parameters, use FromSqlInterpolated, ExecuteSqlInterpolated, or ExecuteSqlInterpolatedAsync instead.")>]
[<System.Runtime.CompilerServices.IsReadOnly>]
type RawSqlString = struct
[<System.Obsolete("For the execution of SQL queries using plain strings, use FromSqlRaw, ExecuteSqlRaw, or ExecuteSqlRawAsync instead. For the execution of SQL queries using interpolated string syntax to create parameters, use FromSqlInterpolated, ExecuteSqlInterpolated, or ExecuteSqlInterpolatedAsync instead.")>]
type RawSqlString = struct
Public Structure RawSqlString
Warisan
RawSqlString
Atribut

Konstruktor

RawSqlString(String)
Kedaluwarsa.

Membangun RawSqlString dari String

Properti

Format
Kedaluwarsa.

Format string.

Operator

Implicit(FormattableString to RawSqlString)
Kedaluwarsa.

Mengonversi secara implisit menjadi FormattableStringRawSqlString

Implicit(String to RawSqlString)
Kedaluwarsa.

Mengonversi secara implisit menjadi StringRawSqlString

Berlaku untuk