Table of Contents

Class DbConnectionExtensions

Namespace
Utils.Data
Assembly
Utils.Data.dll

Extension methods for IDbConnection and DbConnection.

public static class DbConnectionExtensions
Inheritance
DbConnectionExtensions
Inherited Members

Methods

CreateCommand(DbConnection, SqlSyntaxOptions, SqlBuilderInterpolator)

Creates a command using an interpolated SQL builder with custom syntax options.

public static DbCommand CreateCommand(this DbConnection dbConnection, SqlSyntaxOptions syntaxOptions, SqlBuilderInterpolator interpolator)

Parameters

dbConnection DbConnection

The connection used to create the command.

syntaxOptions SqlSyntaxOptions

Syntax options controlling parameter prefixes.

interpolator SqlBuilderInterpolator

Interpolator that builds the SQL and parameters.

Returns

DbCommand

A command initialized with text and parameters provided by interpolator.

CreateCommand(DbConnection, SqlBuilderInterpolator)

Creates a command using an interpolated SQL builder.

public static DbCommand CreateCommand(this DbConnection dbConnection, SqlBuilderInterpolator interpolator)

Parameters

dbConnection DbConnection

The connection used to create the command.

interpolator SqlBuilderInterpolator

Interpolator that builds the SQL and parameters.

Returns

DbCommand

A command initialized with text and parameters provided by interpolator.

CreateCommand(IDbConnection, SqlSyntaxOptions, SqlBuilderInterpolator)

Creates a command using an interpolated SQL builder with custom syntax options.

public static IDbCommand CreateCommand(this IDbConnection dbConnection, SqlSyntaxOptions syntaxOptions, SqlBuilderInterpolator interpolator)

Parameters

dbConnection IDbConnection

The connection used to create the command.

syntaxOptions SqlSyntaxOptions

Syntax options controlling parameter prefixes.

interpolator SqlBuilderInterpolator

Interpolator that builds the SQL and parameters.

Returns

IDbCommand

A command initialized with text and parameters provided by interpolator.

CreateCommand(IDbConnection, SqlBuilderInterpolator)

Creates a command using an interpolated SQL builder.

public static IDbCommand CreateCommand(this IDbConnection dbConnection, SqlBuilderInterpolator interpolator)

Parameters

dbConnection IDbConnection

The connection used to create the command.

interpolator SqlBuilderInterpolator

Interpolator that builds the SQL and parameters.

Returns

IDbCommand

A command initialized with text and parameters provided by interpolator.