RawSqlString Struct

Definition

Caution

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.

A string representing a raw SQL query. This type enables overload resolution between the regular and interpolated FromSql<TEntity>(IQueryable<TEntity>, RawSqlString, Object[]) and ExecuteSqlCommand(DatabaseFacade, RawSqlString, Object[])

C#
public struct RawSqlString
C#
public readonly struct RawSqlString
C#
[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
C#
[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
Inheritance
RawSqlString
Attributes

Constructors

Properties

Format

The string format.

Operators

Applies to

Toode Versioonid (aegunud)
Entity Framework Core 2.0, 2.1, 2.2 (3.0, 3.1)