SqlTransaction.cs 783 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. //
  2. // System.Data.SqlClient.SqlTransaction.cs
  3. //
  4. // Author:
  5. // Rodrigo Moya ([email protected])
  6. //
  7. // (C) Ximian, Inc.
  8. //
  9. namespace System.Data.SqlClient
  10. {
  11. /// <summary>
  12. /// Represents a transaction to be performed on a SQL database.
  13. /// </summary>
  14. public class SqlTransaction : IDbTransaction
  15. {
  16. protected SqlConnection connection = null;
  17. public SqlTransaction (SqlConnection cnc)
  18. {
  19. connection = cnc;
  20. }
  21. [MonoTODO]
  22. public void Commit ()
  23. {
  24. throw new NotImplementedException ();
  25. }
  26. [MonoTODO]
  27. void Rollback()
  28. {
  29. throw new NotImplementedException ();
  30. }
  31. public SqlConnection Connection
  32. {
  33. get { return connection; }
  34. }
  35. [MonoTODO]
  36. public IsolationLevel IsolationLevel
  37. {
  38. get { throw new NotImplementedException (); }
  39. }
  40. }
  41. }