SqlTransaction.cs 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. namespace System.Data.SqlClient
  2. {
  3. /**
  4. * <p>Title: </p>
  5. * <p>Description: </p>
  6. * <p>Copyright: Copyright (c) 2002</p>
  7. * <p>Company: </p>
  8. * @author unascribed
  9. * @version 1.0
  10. */
  11. using System.Data;
  12. /*
  13. * Current Limitations:
  14. * 1. Rollback(String savePoint) - not implemented.
  15. * 2. Save(String) - not implemented.
  16. */
  17. public sealed class SqlTransaction : System.Data.Common.AbstractTransaction
  18. {
  19. internal SqlTransaction(IsolationLevel isolationLevel, SqlConnection connection, String transactionName) : base(isolationLevel, connection, transactionName)
  20. {
  21. }
  22. internal SqlTransaction(SqlConnection connection) : base(IsolationLevel.ReadCommitted, connection, null)
  23. {
  24. }
  25. internal SqlTransaction(SqlConnection connection, String transactionName) : base(IsolationLevel.ReadCommitted, connection, transactionName)
  26. {
  27. }
  28. internal SqlTransaction(IsolationLevel isolationLevel, SqlConnection connection) : base(isolationLevel, connection, null)
  29. {
  30. }
  31. public new SqlConnection Connection
  32. {
  33. get
  34. {
  35. return (SqlConnection)_connection;
  36. }
  37. }
  38. }}