Пример #1
0
 static internal Exception TransactionZombied(DbTransaction obj)
 {
     return InvalidOperation(Res.GetString(Res.ADP_TransactionZombied, obj.GetType().Name));
 }
Пример #2
0
 protected void SetTransaction(DbTransaction txn)
 {
     // We only accept wrapped transactions in order to avoid deadlocks
     if (txn == null || txn is SQLiteTransactionED)
     {
         _transaction = (SQLiteTransactionED)txn;
         InnerCommand.Transaction = _transaction.InnerTransaction;
     }
     else
     {
         throw new InvalidOperationException(String.Format("Expected a {0}; got a {1}", typeof(SQLiteTransactionED).FullName, txn.GetType().FullName));
     }
 }
Пример #3
0
 internal static Exception TransactionZombied(DbTransaction obj)
 {
     return(InvalidOperation(SR.GetString(SR.ADP_TransactionZombied, obj.GetType().Name)));
 }