Class DbNonQuery<TParams>
- Namespace
- Open.Database.Extensions
- Assembly
- Open.Database.Extensions.Core.dll
A DbNonQuery that declared the type of its values.
public sealed class DbNonQuery<TParams> where TParams : struct, IEquatable<TParams>
Type Parameters
TParamsThe type of the values: a struct whose public properties and fields are the parameters.
- Inheritance
-
DbNonQuery<TParams>
- Inherited Members
Methods
- AddParams(TParams)
Adds the values before the source is known.
- Using(DbConnection)
Binds the query to a connection. The connection is opened late and closed again only if this call opened it; it is never disposed.
- Using(DbTransaction)
Binds the query to a transaction, which runs it on the transaction's connection.
- Using<TConnection>(IDbConnectionFactory<TConnection>)
Binds the query to a factory: each run creates a connection, opens it, and disposes it when finished.
- Using<TConnection>(IDbConnectionPool<TConnection>)
Binds the query to a pool: each run takes a connection, opens it if needed, and gives it back.