Class DbSession<TConnection, TCommand, TReader>
Base class to implement specific database session.
Inheritance
System.Object
DbSession<TConnection, TCommand, TReader>
Implements
System.IDisposable
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: DevZest.Data.Primitives
Assembly: DevZest.Data.dll
Syntax
public abstract class DbSession<TConnection, TCommand, TReader> : DbSession, IDisposable where TConnection : DbConnection where TCommand : DbCommand where TReader : DbReader
Type Parameters
Name | Description |
---|---|
TConnection | Type of ADO.Net database connection. |
TCommand | Type of ADO.Net database command. |
TReader | Type of ADO.Net database reader. |
Constructors
Name | Description |
---|---|
DbSession(TConnection) | Initializes a new instance of DbSession<TConnection, TCommand, TReader> class. |
Properties
Name | Description |
---|---|
Connection | Gets the database connection. |
CurrentTransaction | Gets the current transaction. |
TransactionCount | Gets the count of nested transactions. |