Share via


IRawSqlCommandBuilder.Build Method

Definition

Overloads

Build(String)

Creates a new command based on SQL command text.

Build(String, IEnumerable<Object>)

Creates a new command based on SQL command text.

Build(String, IReadOnlyList<Object>)

Creates a new command based on SQL command text.

Build(String)

Creates a new command based on SQL command text.

public Microsoft.EntityFrameworkCore.Storage.IRelationalCommand Build (string sql);
abstract member Build : string -> Microsoft.EntityFrameworkCore.Storage.IRelationalCommand
Public Function Build (sql As String) As IRelationalCommand

Parameters

sql
String

The command text.

Returns

The newly created command.

Applies to

Build(String, IEnumerable<Object>)

Creates a new command based on SQL command text.

public Microsoft.EntityFrameworkCore.Storage.RawSqlCommand Build (string sql, System.Collections.Generic.IEnumerable<object> parameters);
abstract member Build : string * seq<obj> -> Microsoft.EntityFrameworkCore.Storage.RawSqlCommand
Public Function Build (sql As String, parameters As IEnumerable(Of Object)) As RawSqlCommand

Parameters

sql
String

The command text.

parameters
IEnumerable<Object>

Parameters for the command.

Returns

The newly created command.

Applies to

Build(String, IReadOnlyList<Object>)

Creates a new command based on SQL command text.

public Microsoft.EntityFrameworkCore.Storage.RawSqlCommand Build (string sql, System.Collections.Generic.IReadOnlyList<object> parameters);
abstract member Build : string * System.Collections.Generic.IReadOnlyList<obj> -> Microsoft.EntityFrameworkCore.Storage.RawSqlCommand
Public Function Build (sql As String, parameters As IReadOnlyList(Of Object)) As RawSqlCommand

Parameters

sql
String

The command text.

parameters
IReadOnlyList<Object>

Parameters for the command.

Returns

The newly created command.

Applies to