Transaction

Namespace: uModDatabase

Assembly: uMod.Core.dll

Inheritance Object Transaction

Implements IContext, INameable

Summary

Represents a database transaction

Constructors

Name

Summary

Transaction (Provider, Connection, String)

Create a new transaction object

Properties

Name

Summary

Connection

Gets the connection of the transaction

Count

Gets the number of queries in the transaction

Name

Gets the transaction name

Methods

Name

Summary

Clear ()

Removes all queries in the transaction

Commit ()

Commit transaction

Execute (String, Object, Int32)

Create a new non-query with no return rows

Execute<T> (String, Object, Int32)

Create a new non-query with no return rows (but strongly-typed result)

ExecuteScalar (String, Object, Int32)

Create a new non-query that returns a scalar value

Query (String, Object, Int32)

Creates a new query

Query<T> (String, Object, Int32)

Create a new query that returns multiple strongly-typed results

Query<T> (String, IEnumerable<String>, String, Object, Int32)

QueryFirst (String, Object, Int32)

Create a new query that returns first result

QueryFirst<T> (String, Object, Int32)

Create a new query that returns first strongly-typed result

QuerySingle (String, Object, Int32)

Create a new query that returns a single result

QuerySingle<T> (String, Object, Int32)

Create a new query that returns a single strongly-typed result