SqlDataReader.cs 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261
  1. //
  2. // System.Data.SqlClient.SqlDataReader.cs
  3. //
  4. // Author:
  5. // Rodrigo Moya ([email protected])
  6. // Daniel Morgan ([email protected])
  7. //
  8. // (C) Ximian, Inc 2002
  9. //
  10. using System;
  11. using System.Collections;
  12. using System.ComponentModel;
  13. using System.Data;
  14. namespace System.Data.SqlClient
  15. {
  16. /// <summary>
  17. /// Provides a means of reading one or more forward-only streams
  18. /// of result sets obtained by executing a command
  19. /// at a SQL database.
  20. /// </summary>
  21. //public sealed class SqlDataReader : MarshalByRefObject,
  22. // IEnumerable, IDataReader, IDisposable, IDataRecord
  23. public sealed class SqlDataReader : IEnumerable,
  24. IDataReader, IDataRecord
  25. {
  26. #region Fields
  27. private DataTable table = null;
  28. #endregion // Fields
  29. #region Public Methods
  30. [MonoTODO]
  31. public void Close()
  32. {
  33. throw new NotImplementedException ();
  34. }
  35. [MonoTODO]
  36. public DataTable GetSchemaTable()
  37. {
  38. throw new NotImplementedException ();
  39. }
  40. [MonoTODO]
  41. public bool NextResult()
  42. {
  43. throw new NotImplementedException ();
  44. }
  45. [MonoTODO]
  46. public bool Read()
  47. {
  48. throw new NotImplementedException ();
  49. }
  50. [MonoTODO]
  51. public byte GetByte(int i)
  52. {
  53. throw new NotImplementedException ();
  54. }
  55. [MonoTODO]
  56. public long GetBytes(int i, long fieldOffset,
  57. byte[] buffer, int bufferOffset,
  58. int length)
  59. {
  60. throw new NotImplementedException ();
  61. }
  62. [MonoTODO]
  63. public char GetChar(int i)
  64. {
  65. throw new NotImplementedException ();
  66. }
  67. [MonoTODO]
  68. public long GetChars(int i, long fieldOffset,
  69. char[] buffer, int bufferOffset,
  70. int length)
  71. {
  72. throw new NotImplementedException ();
  73. }
  74. [MonoTODO]
  75. public IDataReader GetData(int i)
  76. {
  77. throw new NotImplementedException ();
  78. }
  79. [MonoTODO]
  80. public string GetDataTypeName(int i)
  81. {
  82. throw new NotImplementedException ();
  83. }
  84. [MonoTODO]
  85. public DateTime GetDateTime(int i)
  86. {
  87. throw new NotImplementedException ();
  88. }
  89. [MonoTODO]
  90. public decimal GetDecimal(int i)
  91. {
  92. throw new NotImplementedException ();
  93. }
  94. [MonoTODO]
  95. public double GetDouble(int i)
  96. {
  97. throw new NotImplementedException ();
  98. }
  99. [MonoTODO]
  100. public Type GetFieldType(int i)
  101. {
  102. throw new NotImplementedException ();
  103. }
  104. [MonoTODO]
  105. public float GetFloat(int i)
  106. {
  107. throw new NotImplementedException ();
  108. }
  109. [MonoTODO]
  110. public Guid GetGuid(int i)
  111. {
  112. throw new NotImplementedException ();
  113. }
  114. [MonoTODO]
  115. public short GetInt16(int i)
  116. {
  117. throw new NotImplementedException ();
  118. }
  119. [MonoTODO]
  120. public int GetInt32(int i)
  121. {
  122. throw new NotImplementedException ();
  123. }
  124. [MonoTODO]
  125. public long GetInt64(int i)
  126. {
  127. throw new NotImplementedException ();
  128. }
  129. [MonoTODO]
  130. public string GetName(int i)
  131. {
  132. throw new NotImplementedException ();
  133. }
  134. [MonoTODO]
  135. public int GetOrdinal(string name)
  136. {
  137. throw new NotImplementedException ();
  138. }
  139. [MonoTODO]
  140. public string GetString(int i)
  141. {
  142. throw new NotImplementedException ();
  143. }
  144. [MonoTODO]
  145. public object GetValue(int i)
  146. {
  147. throw new NotImplementedException ();
  148. }
  149. [MonoTODO]
  150. public int GetValues(object[] values)
  151. {
  152. throw new NotImplementedException ();
  153. }
  154. [MonoTODO]
  155. public bool IsDBNull(int i)
  156. {
  157. throw new NotImplementedException ();
  158. }
  159. [MonoTODO]
  160. public bool GetBoolean(int i)
  161. {
  162. throw new NotImplementedException ();
  163. }
  164. [MonoTODO]
  165. public IEnumerator GetEnumerator() {
  166. throw new NotImplementedException ();
  167. }
  168. #endregion // Public Methods
  169. #region Destructors
  170. [MonoTODO]
  171. public void Dispose () {
  172. }
  173. [MonoTODO]
  174. ~SqlDataReader() {
  175. }
  176. #endregion // Destructors
  177. #region Properties
  178. public int Depth {
  179. [MonoTODO]
  180. get {
  181. throw new NotImplementedException ();
  182. }
  183. }
  184. public bool IsClosed {
  185. [MonoTODO]
  186. get {
  187. throw new NotImplementedException ();
  188. }
  189. }
  190. public int RecordsAffected {
  191. [MonoTODO]
  192. get {
  193. throw new NotImplementedException ();
  194. }
  195. }
  196. public int FieldCount {
  197. [MonoTODO]
  198. get {
  199. throw new NotImplementedException ();
  200. }
  201. }
  202. public object this[string name] {
  203. [MonoTODO]
  204. get {
  205. throw new NotImplementedException ();
  206. }
  207. }
  208. public object this[int i] {
  209. [MonoTODO]
  210. get
  211. {
  212. throw new NotImplementedException ();
  213. }
  214. }
  215. #endregion // Properties
  216. }
  217. }