Class RelationalCommandBuilder
- Namespace
- Microsoft.EntityFrameworkCore.Storage
- Assembly
- Microsoft.EntityFrameworkCore.Relational.dll
public class RelationalCommandBuilder : IRelationalCommandBuilder
- Inheritance
-
RelationalCommandBuilder
- Implements
- Inherited Members
- Extension Methods
Constructors
RelationalCommandBuilder(RelationalCommandBuilderDependencies)
Constructs a new RelationalCommand.
This type is typically used by database providers (and other extensions). It is generally not used in application code.
public RelationalCommandBuilder(RelationalCommandBuilderDependencies dependencies)
Parameters
dependencies
RelationalCommandBuilderDependenciesParameter object containing dependencies for this service.
Properties
CommandTextLength
public virtual int CommandTextLength { get; }
Property Value
Dependencies
Relational provider-specific dependencies for this service.
protected virtual RelationalCommandBuilderDependencies Dependencies { get; }
Property Value
Parameters
public virtual IReadOnlyList<IRelationalParameter> Parameters { get; }
Property Value
TypeMappingSource
[Obsolete("Code trying to add parameter should add type mapped parameter using TypeMappingSource directly.")]
public virtual IRelationalTypeMappingSource TypeMappingSource { get; }
Property Value
Methods
AddParameter(IRelationalParameter)
public virtual IRelationalCommandBuilder AddParameter(IRelationalParameter parameter)
Parameters
parameter
IRelationalParameter
Returns
Append(string)
public virtual IRelationalCommandBuilder Append(string value)
Parameters
value
string
Returns
AppendLine()
public virtual IRelationalCommandBuilder AppendLine()
Returns
Build()
public virtual IRelationalCommand Build()
Returns
DecrementIndent()
public virtual IRelationalCommandBuilder DecrementIndent()
Returns
IncrementIndent()
public virtual IRelationalCommandBuilder IncrementIndent()
Returns
RemoveParameterAt(int)
public virtual IRelationalCommandBuilder RemoveParameterAt(int index)
Parameters
index
int
Returns
ToString()
Gets the command text.
public override string ToString()