SqlConnection.cs 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  1. //
  2. // System.Data.SqlClient.SqlConnection.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 an open connection to a SQL data source
  13. /// </summary>
  14. public class SqlConnection : IDBConnection
  15. {
  16. public SqlTransaction BeginTransaction()
  17. {
  18. return new SqlTransaction (this);
  19. }
  20. public SqlTransaction BeginTransaction(IsolationLevel il)
  21. {
  22. SqlTransaction xaction = new SqlTransaction (cnc);
  23. xaction.IsolationLevel = il;
  24. return xaction;
  25. }
  26. [MonoTODO]
  27. public void ChangeDatabase(string databaseName)
  28. {
  29. throw new NotImplementedException ();
  30. }
  31. [MonoTODO]
  32. public void Close()
  33. {
  34. throw new NotImplementedException ();
  35. }
  36. [MonoTODO]
  37. public SqlCommand CreateCommand()
  38. {
  39. throw new NotImplementedException ();
  40. }
  41. [MonoTODO]
  42. public void Open()
  43. {
  44. throw new NotImplementedException ();
  45. }
  46. [MonoTODO]
  47. public string ConnectionString
  48. {
  49. get { throw new NotImplementedException (); }
  50. set { throw new NotImplementedException (); }
  51. }
  52. [MonoTODO]
  53. public int ConnectionTimeout
  54. {
  55. get { throw new NotImplementedException (); }
  56. }
  57. [MonoTODO]
  58. public string Database
  59. {
  60. get { throw new NotImplementedException (); }
  61. }
  62. [MonoTODO]
  63. public ConnectionState State
  64. {
  65. get { throw new NotImplementedException (); }
  66. }
  67. }
  68. }