Exemplo n.º 1
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="connection"></param>
 /// <param name="isolationLevel"></param>
 /// <param name="strategy"></param>
 public RemoteDbTransaction(RemotingDbConnection connection, IsolationLevel isolationLevel, RemotingStrategy strategy)
 {
     Connection     = connection;
     IsolationLevel = isolationLevel;
     Strategy       = strategy;
     Status         = TransactionStatus.InDoubt;
     Strategy.Events.OnTransactionCreated(this);
 }
Exemplo n.º 2
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="strategy"></param>
 public RemotingDbConnection(RemotingStrategy strategy)
 {
     Strategy          = strategy;
     ConnectionTimeout = TimeSpan.FromSeconds(100).Milliseconds;
     Strategy.Events.OnConnectionCreated(this);
 }
Exemplo n.º 3
0
 /// <inheritdoc />
 public RemotingDbParameter(RemotingStrategy strategy)
 {
     Strategy = strategy;
     Strategy.Events.OnParameterCreated(this);
 }
Exemplo n.º 4
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="strategy"></param>
 public RemotingDbCommand(RemotingStrategy strategy)
 {
     Strategy   = strategy;
     Parameters = new RemotingParameterCollection();
 }