IRawSqlCommandBuilder.Build Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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, IEnumerable<Object>, IModel) |
Creates a new command based on SQL command text. |
Build(String)
- Source:
- IRawSqlCommandBuilder.cs
- Source:
- IRawSqlCommandBuilder.cs
- Source:
- IRawSqlCommandBuilder.cs
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>)
- Source:
- IRawSqlCommandBuilder.cs
- Source:
- IRawSqlCommandBuilder.cs
- Source:
- IRawSqlCommandBuilder.cs
Creates a new command based on SQL command text.
public Microsoft.EntityFrameworkCore.Storage.RawSqlCommand Build (string sql, System.Collections.Generic.IEnumerable<object> parameters);
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
Build(String, IEnumerable<Object>, IModel)
- Source:
- IRawSqlCommandBuilder.cs
Creates a new command based on SQL command text.
public Microsoft.EntityFrameworkCore.Storage.RawSqlCommand Build (string sql, System.Collections.Generic.IEnumerable<object?> parameters, Microsoft.EntityFrameworkCore.Metadata.IModel model);
abstract member Build : string * seq<obj> * Microsoft.EntityFrameworkCore.Metadata.IModel -> Microsoft.EntityFrameworkCore.Storage.RawSqlCommand
Public Function Build (sql As String, parameters As IEnumerable(Of Object), model As IModel) As RawSqlCommand
Parameters
- sql
- String
The command text.
- parameters
- IEnumerable<Object>
Parameters for the command.
- model
- IModel
The model.
Returns
The newly created command.
Applies to
Entity Framework