public void Commit() { if (globalPref.UseTransaction && SqlProxyTransaction != null) { SqlProxyTransaction.Commit(); } }
public void Rollback() { if (globalPref.UseTransaction && SqlProxyTransaction != null) { SqlProxyTransaction.Rollback(); } }
public SqlProxyCommand(string cmdText, SqlProxyConnection connection, SqlProxyTransaction transaction) { Command = ProxyProviderLoader.CreateInstance <ISqlProviderCommand>("SqlProvider.SqlProviderCommand", cmdText, connection.Connection, transaction.Transaction); Parameters = new SqlProxyParameterCollection(Command); }