DbLinkContext
Namespace: TagBites.DB
Assembly: TagBites.DB.dll
Product: TagBites.DB v. 1.0.37
public class DbLinkContext : TagBites.DB.IDbLinkContext, TagBites.DB.IDbLink, System.IDisposableInheritance: object → DbLinkContext
Constructors
Section titled “Constructors”DbLinkContext()
Section titled “DbLinkContext()”protected internal DbLinkContext()Properties
Section titled “Properties”public virtual DbLinkBag Bag { get; }Property Value
Section titled “Property Value”Database
Section titled “Database”public virtual string Database { get; set; }Property Value
Section titled “Property Value”IsActive
Section titled “IsActive”public virtual bool IsActive { get; }Property Value
Section titled “Property Value”IsDisposed
Section titled “IsDisposed”public virtual bool IsDisposed { get; }Property Value
Section titled “Property Value”IsExecuting
Section titled “IsExecuting”public virtual bool IsExecuting { get; }Property Value
Section titled “Property Value”LastExecuted
Section titled “LastExecuted”public virtual DateTime LastExecuted { get; }Property Value
Section titled “Property Value”Provider
Section titled “Provider”public DbLinkProvider Provider { get; }Property Value
Section titled “Property Value”SynchRoot
Section titled “SynchRoot”public virtual object SynchRoot { get; }Property Value
Section titled “Property Value”TransactionContext
Section titled “TransactionContext”public virtual IDbLinkTransactionContext TransactionContext { get; }Property Value
Section titled “Property Value”TransactionStatus
Section titled “TransactionStatus”public virtual DbLinkTransactionStatus TransactionStatus { get; }Property Value
Section titled “Property Value”Methods
Section titled “Methods”BatchExecute(IQuerySource)
Section titled “BatchExecute(IQuerySource)”public virtual QueryResult[] BatchExecute(IQuerySource query)Parameters
Section titled “Parameters”queryIQuerySource
Returns
Section titled “Returns”Begin()
Section titled “Begin()”public virtual IDbLinkTransaction Begin()Returns
Section titled “Returns”Begin(bool)
Section titled “Begin(bool)”protected internal IDbLinkTransaction Begin(bool force)Parameters
Section titled “Parameters”forcebool
Returns
Section titled “Returns”Begin(bool, bool)
Section titled “Begin(bool, bool)”protected internal IDbLinkTransaction Begin(bool force, bool createTransactionScopeIfNotExists)Parameters
Section titled “Parameters”Returns
Section titled “Returns”CheckDispose()
Section titled “CheckDispose()”protected void CheckDispose()DelayedBatchExecute(IQuerySource)
Section titled “DelayedBatchExecute(IQuerySource)”public virtual DelayedBatchQueryResult DelayedBatchExecute(IQuerySource query)Parameters
Section titled “Parameters”queryIQuerySource
Returns
Section titled “Returns”Execute(IQuerySource)
Section titled “Execute(IQuerySource)”public virtual QueryResult Execute(IQuerySource query)Parameters
Section titled “Parameters”queryIQuerySource
Returns
Section titled “Returns”ExecuteInner<T>(Func<T>)
Section titled “ExecuteInner<T>(Func<T>)”protected T ExecuteInner(Func<T> action)Parameters
Section titled “Parameters”actionFunc<T>
Returns
Section titled “Returns”T
ExecuteNonQuery(IQuerySource)
Section titled “ExecuteNonQuery(IQuerySource)”public virtual int ExecuteNonQuery(IQuerySource query)Parameters
Section titled “Parameters”queryIQuerySource
Returns
Section titled “Returns”ExecuteOnOpenConnection(Action<DbConnection>)
Section titled “ExecuteOnOpenConnection(Action<DbConnection>)”protected void ExecuteOnOpenConnection(Action<DbConnection> connectionProvider)Parameters
Section titled “Parameters”connectionProviderAction<DbConnection>
ExecuteScalar(IQuerySource)
Section titled “ExecuteScalar(IQuerySource)”public virtual object ExecuteScalar(IQuerySource query)Parameters
Section titled “Parameters”queryIQuerySource
Returns
Section titled “Returns”Force()
Section titled “Force()”public virtual void Force()IsConnectionBrokenException(Exception)
Section titled “IsConnectionBrokenException(Exception)”protected virtual bool IsConnectionBrokenException(Exception e)Parameters
Section titled “Parameters”Returns
Section titled “Returns”OnConnectionCreated()
Section titled “OnConnectionCreated()”protected virtual void OnConnectionCreated()OnConnectionDisposed()
Section titled “OnConnectionDisposed()”protected virtual void OnConnectionDisposed()OnConnectionOpen()
Section titled “OnConnectionOpen()”protected virtual void OnConnectionOpen()OnFormatException(Exception)
Section titled “OnFormatException(Exception)”protected virtual Exception OnFormatException(Exception e)Parameters
Section titled “Parameters”Returns
Section titled “Returns”OnInfoMessage(string, string)
Section titled “OnInfoMessage(string, string)”protected void OnInfoMessage(string message, string source)Parameters
Section titled “Parameters”OnTransactionBeforeCommit()
Section titled “OnTransactionBeforeCommit()”protected virtual void OnTransactionBeforeCommit()Events
Section titled “Events”ConnectionClosed
Section titled “ConnectionClosed”public virtual EventHandler ConnectionClosedEvent Type
Section titled “Event Type”ConnectionLost
Section titled “ConnectionLost”public virtual EventHandler<DbLinkConnectionLostEventArgs> ConnectionLostEvent Type
Section titled “Event Type”EventHandler<DbLinkConnectionLostEventArgs>
ConnectionOpened
Section titled “ConnectionOpened”public virtual EventHandler ConnectionOpenedEvent Type
Section titled “Event Type”ExceptionFormatting
Section titled “ExceptionFormatting”public virtual EventHandler<DbExceptionFormatEventArgs> ExceptionFormattingEvent Type
Section titled “Event Type”EventHandler<DbExceptionFormatEventArgs>
InfoMessageReceived
Section titled “InfoMessageReceived”public virtual EventHandler<DbLinkInfoMessageEventArgs> InfoMessageReceivedEvent Type
Section titled “Event Type”EventHandler<DbLinkInfoMessageEventArgs>
QueryExecuted
Section titled “QueryExecuted”public virtual EventHandler<DbLinkQueryExecutedEventArgs> QueryExecutedEvent Type
Section titled “Event Type”EventHandler<DbLinkQueryExecutedEventArgs>
QueryExecuting
Section titled “QueryExecuting”public virtual EventHandler<DbLinkQueryExecutingEventArgs> QueryExecutingEvent Type
Section titled “Event Type”EventHandler<DbLinkQueryExecutingEventArgs>
TransactionBegan
Section titled “TransactionBegan”public virtual EventHandler TransactionBeganEvent Type
Section titled “Event Type”TransactionBeginning
Section titled “TransactionBeginning”public virtual EventHandler TransactionBeginningEvent Type
Section titled “Event Type”TransactionClosed
Section titled “TransactionClosed”public virtual EventHandler<DbLinkTransactionCloseEventArgs> TransactionClosedEvent Type
Section titled “Event Type”EventHandler<DbLinkTransactionCloseEventArgs>
TransactionCommiting
Section titled “TransactionCommiting”public virtual EventHandler TransactionCommitingEvent Type
Section titled “Event Type”TransactionContextBegan
Section titled “TransactionContextBegan”public virtual EventHandler TransactionContextBeganEvent Type
Section titled “Event Type”TransactionContextClosed
Section titled “TransactionContextClosed”public virtual EventHandler<DbLinkTransactionContextCloseEventArgs> TransactionContextClosed