DbDataReaderBase.cs 6.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306
  1. //
  2. // System.Data.ProviderBase.DbDataReaderBase
  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.Collections;
  33. using System.Data.Common;
  34. using System.Runtime.InteropServices;
  35. namespace System.Data.ProviderBase {
  36. public abstract class DbDataReaderBase : DbDataReader
  37. {
  38. #region Fields
  39. CommandBehavior behavior;
  40. #endregion // Fields
  41. #region Constructors
  42. protected DbDataReaderBase (CommandBehavior behavior)
  43. {
  44. this.behavior = behavior;
  45. }
  46. #endregion // Constructors
  47. #region Properties
  48. protected CommandBehavior CommandBehavior {
  49. get { return behavior; }
  50. }
  51. [MonoTODO]
  52. public override int Depth {
  53. get { throw new NotImplementedException (); }
  54. }
  55. [MonoTODO]
  56. public override int FieldCount {
  57. get { throw new NotImplementedException (); }
  58. }
  59. [MonoTODO]
  60. public override bool HasRows {
  61. get { throw new NotImplementedException (); }
  62. }
  63. [MonoTODO]
  64. public override bool IsClosed {
  65. get { throw new NotImplementedException (); }
  66. }
  67. protected abstract bool IsValidRow { get; }
  68. [MonoTODO]
  69. public override object this [[Optional] int index] {
  70. get { throw new NotImplementedException (); }
  71. }
  72. [MonoTODO]
  73. public override object this [[Optional] string columnName] {
  74. get { throw new NotImplementedException (); }
  75. }
  76. [MonoTODO]
  77. public override int RecordsAffected {
  78. get { throw new NotImplementedException (); }
  79. }
  80. #endregion // Properties
  81. #region Methods
  82. [MonoTODO]
  83. protected void AssertReaderHasColumns ()
  84. {
  85. throw new NotImplementedException ();
  86. }
  87. [MonoTODO]
  88. protected void AssertReaderHasData ()
  89. {
  90. throw new NotImplementedException ();
  91. }
  92. [MonoTODO]
  93. protected void AssertReaderIsOpen (string methodName)
  94. {
  95. throw new NotImplementedException ();
  96. }
  97. [MonoTODO]
  98. public override void Close ()
  99. {
  100. throw new NotImplementedException ();
  101. }
  102. [MonoTODO]
  103. protected static DataTable CreateSchemaTable ()
  104. {
  105. throw new NotImplementedException ();
  106. }
  107. [MonoTODO]
  108. public override void Dispose ()
  109. {
  110. throw new NotImplementedException ();
  111. }
  112. [MonoTODO]
  113. protected virtual void FillSchemaTable (DataTable dataTable)
  114. {
  115. throw new NotImplementedException ();
  116. }
  117. [MonoTODO]
  118. public override bool GetBoolean (int ordinal)
  119. {
  120. throw new NotImplementedException ();
  121. }
  122. [MonoTODO]
  123. public override byte GetByte (int ordinal)
  124. {
  125. throw new NotImplementedException ();
  126. }
  127. [MonoTODO]
  128. public override long GetBytes (int ordinal, long fieldoffset, byte[] buffer, int bufferoffset, int length)
  129. {
  130. throw new NotImplementedException ();
  131. }
  132. [MonoTODO]
  133. public override char GetChar (int ordinal)
  134. {
  135. throw new NotImplementedException ();
  136. }
  137. [MonoTODO]
  138. public override long GetChars (int ordinal, long fieldoffset, char[] buffer, int bufferoffset, int length)
  139. {
  140. throw new NotImplementedException ();
  141. }
  142. [MonoTODO]
  143. public override string GetDataTypeName (int ordinal)
  144. {
  145. throw new NotImplementedException ();
  146. }
  147. [MonoTODO]
  148. public override DateTime GetDateTime (int ordinal)
  149. {
  150. throw new NotImplementedException ();
  151. }
  152. [MonoTODO]
  153. public override decimal GetDecimal (int ordinal)
  154. {
  155. throw new NotImplementedException ();
  156. }
  157. [MonoTODO]
  158. public override double GetDouble (int ordinal)
  159. {
  160. throw new NotImplementedException ();
  161. }
  162. [MonoTODO]
  163. public override IEnumerator GetEnumerator ()
  164. {
  165. throw new NotImplementedException ();
  166. }
  167. [MonoTODO]
  168. public override Type GetFieldType (int ordinal)
  169. {
  170. throw new NotImplementedException ();
  171. }
  172. [MonoTODO]
  173. public override float GetFloat (int ordinal)
  174. {
  175. throw new NotImplementedException ();
  176. }
  177. [MonoTODO]
  178. public override Guid GetGuid (int ordinal)
  179. {
  180. throw new NotImplementedException ();
  181. }
  182. [MonoTODO]
  183. public override short GetInt16 (int ordinal)
  184. {
  185. throw new NotImplementedException ();
  186. }
  187. [MonoTODO]
  188. public override int GetInt32 (int ordinal)
  189. {
  190. throw new NotImplementedException ();
  191. }
  192. [MonoTODO]
  193. public override long GetInt64 (int ordinal)
  194. {
  195. throw new NotImplementedException ();
  196. }
  197. [MonoTODO]
  198. public override string GetName (int ordinal)
  199. {
  200. throw new NotImplementedException ();
  201. }
  202. [MonoTODO]
  203. public override int GetOrdinal (string name)
  204. {
  205. throw new NotImplementedException ();
  206. }
  207. [MonoTODO]
  208. public override DataTable GetSchemaTable ()
  209. {
  210. throw new NotImplementedException ();
  211. }
  212. [MonoTODO]
  213. public override string GetString (int ordinal)
  214. {
  215. throw new NotImplementedException ();
  216. }
  217. [MonoTODO]
  218. public override object GetValue (int ordinal)
  219. {
  220. throw new NotImplementedException ();
  221. }
  222. [MonoTODO]
  223. public override int GetValues (object[] values)
  224. {
  225. throw new NotImplementedException ();
  226. }
  227. [MonoTODO]
  228. protected bool IsCommandBehavior (CommandBehavior condition)
  229. {
  230. throw new NotImplementedException ();
  231. }
  232. [MonoTODO]
  233. public override bool IsDBNull (int ordinal)
  234. {
  235. throw new NotImplementedException ();
  236. }
  237. [MonoTODO]
  238. public override bool NextResult ()
  239. {
  240. throw new NotImplementedException ();
  241. }
  242. [MonoTODO]
  243. public override bool Read ()
  244. {
  245. throw new NotImplementedException ();
  246. }
  247. #endregion // Methods
  248. }
  249. }
  250. #endif