DbDataReaderBase.cs 5.2 KB

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