Table of Contents

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

command QueryCommand

Returns

QueryBuilder

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

command QueryCommand
cmd DbCommand

Returns

QueryBuilderCommand<DbCommand>

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

command QueryCommand
cmd DbCommand
values Span<(string, object)>

Returns

QueryBuilderCommand<DbCommand>

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

command QueryCommand
cmd IDbCommand

Returns

QueryBuilderCommand<IDbCommand>

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

command QueryCommand
cmd IDbCommand
values Span<(string, object)>

Returns

QueryBuilderCommand<IDbCommand>

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

command QueryCommand
values Span<(string, object)>

Returns

QueryBuilder