SqlDataAdapter.cs 5.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231
  1. //
  2. // System.Data.SqlClient.SqlDataAdapter.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.ComponentModel;
  12. using System.Data;
  13. using System.Data.Common;
  14. namespace System.Data.SqlClient
  15. {
  16. /// <summary>
  17. /// Represents a set of command-related properties that are used
  18. /// to fill the DataSet and update a data source, all this
  19. /// from a SQL database.
  20. /// </summary>
  21. public sealed class SqlDataAdapter : DbDataAdapter, IDbDataAdapter
  22. {
  23. #region Properties
  24. [MonoTODO]
  25. public SqlCommand DeleteCommand {
  26. get {
  27. throw new NotImplementedException ();
  28. }
  29. set {
  30. throw new NotImplementedException ();
  31. }
  32. }
  33. [MonoTODO]
  34. public SqlCommand InsertCommand {
  35. get {
  36. throw new NotImplementedException ();
  37. }
  38. set {
  39. throw new NotImplementedException ();
  40. }
  41. }
  42. [MonoTODO]
  43. public SqlCommand SelectCommand {
  44. get {
  45. throw new NotImplementedException ();
  46. }
  47. set {
  48. throw new NotImplementedException ();
  49. }
  50. }
  51. public SqlCommand UpdateCommand {
  52. get {
  53. throw new NotImplementedException ();
  54. }
  55. set {
  56. throw new NotImplementedException ();
  57. }
  58. }
  59. #endregion // Properties
  60. #region Methods
  61. [MonoTODO]
  62. public override int Fill(DataSet dataSet) {
  63. throw new NotImplementedException ();
  64. }
  65. [MonoTODO]
  66. public int Fill(DataTable dataTable) {
  67. throw new NotImplementedException ();
  68. }
  69. [MonoTODO]
  70. public int Fill(DataSet dataSet, string srcTable) {
  71. throw new NotImplementedException ();
  72. }
  73. [MonoTODO]
  74. protected virtual int Fill(DataTable dataTable,
  75. IDataReader dataReader) {
  76. throw new NotImplementedException ();
  77. }
  78. [MonoTODO]
  79. protected virtual int Fill(DataTable dataTable,
  80. IDbCommand command,
  81. CommandBehavior behavior) {
  82. throw new NotImplementedException ();
  83. }
  84. [MonoTODO]
  85. public int Fill(DataSet dataSet, int startRecord,
  86. int maxRecords, string srcTable) {
  87. throw new NotImplementedException ();
  88. }
  89. [MonoTODO]
  90. protected virtual int Fill(DataSet dataSet,
  91. string srcTable, IDataReader dataReader,
  92. int startRecord, int maxRecords) {
  93. throw new NotImplementedException ();
  94. }
  95. [MonoTODO]
  96. protected virtual int Fill(DataSet dataSet,
  97. int startRecord, int maxRecords,
  98. string srcTable, IDbCommand command,
  99. CommandBehavior behavior) {
  100. throw new NotImplementedException ();
  101. }
  102. [MonoTODO]
  103. public override DataTable[] FillSchema(DataSet dataSet,
  104. SchemaType schemaType) {
  105. throw new NotImplementedException ();
  106. }
  107. [MonoTODO]
  108. public DataTable FillSchema(DataTable dataTable,
  109. SchemaType schemaType) {
  110. throw new NotImplementedException ();
  111. }
  112. [MonoTODO]
  113. public DataTable[] FillSchema(DataSet dataSet,
  114. SchemaType schemaType, string srcTable) {
  115. throw new NotImplementedException ();
  116. }
  117. [MonoTODO]
  118. protected virtual DataTable FillSchema(DataTable dataTable,
  119. SchemaType schemaType, IDbCommand command,
  120. CommandBehavior behavior) {
  121. throw new NotImplementedException ();
  122. }
  123. [MonoTODO]
  124. protected virtual DataTable[] FillSchema(DataSet dataSet,
  125. SchemaType schemaType, IDbCommand command,
  126. string srcTable, CommandBehavior behavior) {
  127. throw new NotImplementedException ();
  128. }
  129. [MonoTODO]
  130. public override IDataParameter[] GetFillParameters() {
  131. throw new NotImplementedException ();
  132. }
  133. [MonoTODO]
  134. public int Update(DataRow[] dataRows) {
  135. throw new NotImplementedException ();
  136. }
  137. [MonoTODO]
  138. public override int Update(DataSet dataSet) {
  139. throw new NotImplementedException ();
  140. }
  141. [MonoTODO]
  142. public int Update(DataTable dataTable) {
  143. throw new NotImplementedException ();
  144. }
  145. [MonoTODO]
  146. protected virtual int Update(DataRow[] dataRows,
  147. DataTableMapping tableMapping) {
  148. throw new NotImplementedException ();
  149. }
  150. [MonoTODO]
  151. public int Update(DataSet dataSet, string srcTable) {
  152. throw new NotImplementedException ();
  153. }
  154. [MonoTODO]
  155. protected override RowUpdatedEventArgs CreateRowUpdatedEvent(
  156. DataRow dataRow,
  157. IDbCommand command,
  158. StatementType statementType,
  159. DataTableMapping tableMapping) {
  160. throw new NotImplementedException ();
  161. }
  162. [MonoTODO]
  163. protected override RowUpdatingEventArgs CreateRowUpdatingEvent(
  164. DataRow dataRow,
  165. IDbCommand command,
  166. StatementType statementType,
  167. DataTableMapping tableMapping) {
  168. throw new NotImplementedException ();
  169. }
  170. [MonoTODO]
  171. protected virtual void OnFillError(FillErrorEventArgs value) {
  172. throw new NotImplementedException ();
  173. }
  174. protected override void OnRowUpdated(RowUpdatedEventArgs value) {
  175. throw new NotImplementedException ();
  176. }
  177. protected override void OnRowUpdating(RowUpdatingEventArgs value) {
  178. throw new NotImplementedException ();
  179. }
  180. #endregion // Methods
  181. #region Events and Delegates
  182. public event FillErrorEventHandler FillError;
  183. public event SqlRowUpdatedEventHandler RowUpdated;
  184. public event SqlRowUpdatingEventHandler RowUpdating;
  185. #endregion // Events and Delegates
  186. }
  187. }