DbConnectionInternal.cs 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168
  1. //
  2. // System.Data.ProviderBase.DbConnectionInternal
  3. //
  4. // Author:
  5. // Tim Coleman ([email protected])
  6. //
  7. // Copyright (C) Tim Coleman, 2003
  8. //
  9. //
  10. // Copyright (C) 2004 Novell, Inc (http://www.novell.com)
  11. //
  12. // Permission is hereby granted, free of charge, to any person obtaining
  13. // a copy of this software and associated documentation files (the
  14. // "Software"), to deal in the Software without restriction, including
  15. // without limitation the rights to use, copy, modify, merge, publish,
  16. // distribute, sublicense, and/or sell copies of the Software, and to
  17. // permit persons to whom the Software is furnished to do so, subject to
  18. // the following conditions:
  19. //
  20. // The above copyright notice and this permission notice shall be
  21. // included in all copies or substantial portions of the Software.
  22. //
  23. // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
  24. // EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
  25. // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
  26. // NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
  27. // LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
  28. // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
  29. // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
  30. //
  31. #if NET_2_0
  32. using System.Data.Common;
  33. using System.EnterpriseServices;
  34. namespace System.Data.ProviderBase {
  35. public abstract class DbConnectionInternal
  36. {
  37. #region Fields
  38. #endregion // Fields
  39. #region Constructors
  40. [MonoTODO]
  41. protected DbConnectionInternal ()
  42. {
  43. }
  44. #endregion // Constructors
  45. #region Properties
  46. [MonoTODO]
  47. protected bool IsEnlistedInDistributedTransaction {
  48. get { throw new NotImplementedException (); }
  49. }
  50. [MonoTODO]
  51. protected internal object Owner {
  52. get { throw new NotImplementedException (); }
  53. }
  54. [MonoTODO]
  55. protected internal DbReferenceCollection ReferenceCollection {
  56. get { throw new NotImplementedException (); }
  57. }
  58. public abstract string ServerVersion { get; }
  59. [MonoTODO]
  60. public virtual string ServerVersionNormalized {
  61. get { throw new NotImplementedException (); }
  62. }
  63. public abstract ConnectionState State { get; }
  64. #endregion // Properties
  65. #region Methods
  66. protected abstract void Activate (bool isInTransaction);
  67. [MonoTODO]
  68. protected virtual IAsyncResult BeginOpen (DbConnectionBase outerConnection, AsyncCallback callback, object asyncStateObject)
  69. {
  70. throw new NotImplementedException ();
  71. }
  72. public abstract DbTransaction BeginTransaction (IsolationLevel il);
  73. [MonoTODO]
  74. public virtual void ChangeDatabase (string value)
  75. {
  76. throw new NotImplementedException ();
  77. }
  78. [MonoTODO]
  79. public virtual void Close ()
  80. {
  81. throw new NotImplementedException ();
  82. }
  83. [MonoTODO]
  84. protected virtual DbReferenceCollection CreateReferenceCollection ()
  85. {
  86. throw new NotImplementedException ();
  87. }
  88. protected abstract void Deactivate ();
  89. [MonoTODO]
  90. public void Dispose ()
  91. {
  92. throw new NotImplementedException ();
  93. }
  94. [MonoTODO]
  95. protected virtual void Dispose (bool disposing)
  96. {
  97. throw new NotImplementedException ();
  98. }
  99. [MonoTODO]
  100. protected internal void DoomThisConnection ()
  101. {
  102. throw new NotImplementedException ();
  103. }
  104. [MonoTODO]
  105. public virtual void EndOpen (DbConnectionBase outerConnection, IAsyncResult asyncResult)
  106. {
  107. throw new NotImplementedException ();
  108. }
  109. public abstract void EnlistDistributedTransaction (ITransaction transaction);
  110. [MonoTODO]
  111. protected virtual DataTable GetSchemaInternal (DbConnectionBase outerConnection, string collectionName, string[] restrictions)
  112. {
  113. throw new NotImplementedException ();
  114. }
  115. [MonoTODO]
  116. public virtual void Open (DbConnectionBase outerConnection)
  117. {
  118. throw new NotImplementedException ();
  119. }
  120. [MonoTODO]
  121. protected void PurgeWeakReferences ()
  122. {
  123. throw new NotImplementedException ();
  124. }
  125. [MonoTODO]
  126. protected internal void SetDistributedTransaction (ITransaction transaction, bool manualEnlistment)
  127. {
  128. throw new NotImplementedException ();
  129. }
  130. #endregion // Methods
  131. }
  132. }
  133. #endif