RawSqlString Yapı

Tanım

Dikkat

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.

Ham SQL sorgusunu temsil eden bir dize. Bu tür, düzenli ve enterpolasyonlu ve arasında aşırı yükleme çözünürlüğü sunar FromSql<TEntity>(IQueryable<TEntity>, RawSqlString, Object[])ExecuteSqlCommand(DatabaseFacade, RawSqlString, Object[])

public 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 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 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
Devralma
RawSqlString
Öznitelikler

Oluşturucular

RawSqlString(String)

Bir kaynağından bir oluşturur RawSqlStringString

Özellikler

Format

Dize biçimi.

İşleçler

Implicit(FormattableString to RawSqlString)

Örtülü olarak bir FormattableString öğesine dönüştürür RawSqlString

Implicit(String to RawSqlString)

Örtülü olarak bir String öğesine dönüştürür RawSqlString

Şunlara uygulanır