Compartir a través de


IRelationalCommandBuilder Interface

Definition

Builds a command to be executed against a relational database.

This type is typically used by database providers (and other extensions). It is generally not used in application code.

public interface IRelationalCommandBuilder : Microsoft.EntityFrameworkCore.Infrastructure.IInfrastructure<Microsoft.EntityFrameworkCore.Internal.IndentedStringBuilder>
public interface IRelationalCommandBuilder
type IRelationalCommandBuilder = interface
    interface IInfrastructure<IndentedStringBuilder>
type IRelationalCommandBuilder = interface
Public Interface IRelationalCommandBuilder
Implements IInfrastructure(Of IndentedStringBuilder)
Public Interface IRelationalCommandBuilder
Derived
Implements
IInfrastructure<Microsoft.EntityFrameworkCore.Internal.IndentedStringBuilder>

Remarks

See Implementation of database providers and extensions for more information and examples.

Properties

CommandTextLength

Gets the length of the command text.

Instance

Gets the value of the property being hidden.

(Inherited from IInfrastructure<T>)
ParameterBuilder

Builds the parameters associated with this command.

Parameters

The collection of parameters.

TypeMappingSource
Obsolete.

The source for RelationalTypeMappings to use.

Methods

AddParameter(IRelationalParameter)

Adds the given parameter to this command.

Append(Object)

Appends an object to the command text.

Append(String)

Appends an object to the command text.

AppendLine()

Appends a blank line to the command text.

Build()

Creates the command.

DecrementIndent()

Decrements the indent of subsequent lines.

IncrementIndent()

Increments the indent of subsequent lines.

RemoveParameterAt(Int32)

Removes the parameter with the given index from this command.

Extension Methods

GetInfrastructure<T>(IInfrastructure<T>)

Gets the value from a property that is being hidden using IInfrastructure<T>.

This method is typically used by database providers (and other extensions). It is generally not used in application code.

AddCompositeParameter(IRelationalCommandBuilder, String, Action<IRelationalParameterBuilder>)

Adds a parameter that is ultimately represented as multiple DbParameters in the final command.

AddCompositeParameter(IRelationalCommandBuilder, String, IReadOnlyList<IRelationalParameter>)

Adds a parameter that is ultimately represented as multiple DbParameters in the final command.

AddParameter(IRelationalCommandBuilder, String, String, IProperty)
Obsolete.

Adds a parameter.

AddParameter(IRelationalCommandBuilder, String, String, RelationalTypeMapping, Boolean)

Adds a parameter.

AddParameter(IRelationalCommandBuilder, String, String, RelationalTypeMapping, Nullable<Boolean>, ParameterDirection)

Adds a parameter.

AddParameter(IRelationalCommandBuilder, String, String, RelationalTypeMapping, Nullable<Boolean>)

Adds a parameter.

AddParameter(IRelationalCommandBuilder, String, String)
Obsolete.

Adds a parameter.

AddPropertyParameter(IRelationalCommandBuilder, String, String, IProperty)
Obsolete.

Adds a parameter.

AddRawParameter(IRelationalCommandBuilder, String, DbParameter)

Adds a parameter.

Append(IRelationalCommandBuilder, Object)

Appends an object to the command text.

AppendLine(IRelationalCommandBuilder, Object)

Appends an object to the command text on a new line.

AppendLine(IRelationalCommandBuilder, String)

Appends an object to the command text on a new line.

AppendLine(IRelationalCommandBuilder)

Appends a blank line to the command text.

AppendLines(IRelationalCommandBuilder, Object, Boolean)

Appends an object, that contains multiple lines of text, to the command text. Each line read from the object is appended on a new line.

AppendLines(IRelationalCommandBuilder, Object)

Appends an object, that contains multiple lines of text, to the command text. Each line read from the object is appended on a new line.

AppendLines(IRelationalCommandBuilder, String, Boolean)

Appends an object, that contains multiple lines of text, to the command text. Each line read from the object is appended on a new line.

DecrementIndent(IRelationalCommandBuilder)

Decrements the indent of subsequent lines.

GetLength(IRelationalCommandBuilder)

Gets the length of the command text.

IncrementIndent(IRelationalCommandBuilder)

Increments the indent of subsequent lines.

Indent(IRelationalCommandBuilder)

Increases the indent of the command text.

Applies to