Class BuilderStarter
- Namespace
- Rinku
- Assembly
- Rinku.dll
Opens a builder for a QueryCommand. Use a builder when values are supplied in several steps or when code needs to choose which optional parts of the query are used.
public static class BuilderStarter
- Inheritance
-
BuilderStarter
- Inherited Members
Methods
StartBuilder(QueryCommand)
Opens a builder that collects values until the query runs.
public static QueryBuilder StartBuilder(this QueryCommand command)
Parameters
commandQueryCommand
Returns
StartBuilder(QueryCommand, DbCommand)
Opens a builder that writes values to a DbCommand supplied by the caller. Use this overload when the same database command will run more than once.
public static QueryBuilderCommand<DbCommand> StartBuilder(this QueryCommand command, DbCommand cmd)
Parameters
commandQueryCommandcmdDbCommand
Returns
StartBuilder(QueryCommand, DbCommand, params Span<(string, object)>)
Opens a builder bound to the given DbCommand, already seeded with the name and value pairs.
public static QueryBuilderCommand<DbCommand> StartBuilder(this QueryCommand command, DbCommand cmd, params Span<(string, object)> values)
Parameters
commandQueryCommandcmdDbCommandvaluesSpan<(string, object)>
Returns
StartBuilder(QueryCommand, IDbCommand)
Opens a builder that writes values to a DbCommand supplied by the caller. Use this overload when the same database command will run more than once.
public static QueryBuilderCommand<IDbCommand> StartBuilder(this QueryCommand command, IDbCommand cmd)
Parameters
commandQueryCommandcmdIDbCommand
Returns
StartBuilder(QueryCommand, IDbCommand, params Span<(string, object)>)
Opens a builder bound to the given DbCommand, already seeded with the name and value pairs.
public static QueryBuilderCommand<IDbCommand> StartBuilder(this QueryCommand command, IDbCommand cmd, params Span<(string, object)> values)
Parameters
commandQueryCommandcmdIDbCommandvaluesSpan<(string, object)>
Returns
StartBuilder(QueryCommand, params Span<(string, object)>)
Opens an in-memory builder already seeded with the given name and value pairs.
public static QueryBuilder StartBuilder(this QueryCommand command, params Span<(string, object)> values)
Parameters
commandQueryCommandvaluesSpan<(string, object)>