DbDataAdapter.cs 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160
  1. //
  2. // System.Data.Common.DbDataAdapter.cs
  3. //
  4. // Author:
  5. // Rodrigo Moya ([email protected])
  6. //
  7. // (C) Ximian, Inc
  8. //
  9. namespace System.Data.Common
  10. {
  11. /// <summary>
  12. /// Aids implementation of the IDbDataAdapter interface. Inheritors of DbDataAdapter implement a set of functions to provide strong typing, but inherit most of the functionality needed to fully implement a DataAdapter.
  13. /// </summary>
  14. public abstract class DbDataAdapter : DataAdapter, ICloneable
  15. {
  16. public const string DefaultSourceTableName = "default";
  17. [MonoTODO]
  18. protected DbDataAdapter() {
  19. throw new NotImplementedException ();
  20. }
  21. [MonoTODO]
  22. public override int Fill (DataSet ds) {
  23. throw new NotImplementedException ();
  24. }
  25. [MonoTODO]
  26. public int Fill (DataTable dt) {
  27. throw new NotImplementedException ();
  28. }
  29. [MonoTODO]
  30. public int Fill (DataSet ds, string s) {
  31. throw new NotImplementedException ();
  32. }
  33. [MonoTODO]
  34. protected virtual int Fill (DataTable dt, IDataReader idr) {
  35. throw new NotImplementedException ();
  36. }
  37. [MonoTODO]
  38. protected virtual int Fill (DataTable dt,
  39. IDbCommand idc,
  40. CommandBehavior behavior) {
  41. throw new NotImplementedException ();
  42. }
  43. [MonoTODO]
  44. public int Fill (DataSet ds, int i, int j, string s) {
  45. throw new NotImplementedException ();
  46. }
  47. [MonoTODO]
  48. protected virtual int Fill (DataSet ds,
  49. string s,
  50. IDataReader idr,
  51. int i,
  52. int j) {
  53. throw new NotImplementedException ();
  54. }
  55. [MonoTODO]
  56. protected virtual int Fill (DataSet ds,
  57. int i,
  58. int j,
  59. string s,
  60. IDbCommand idc,
  61. CommandBehavior behavior) {
  62. throw new NotImplementedException ();
  63. }
  64. [MonoTODO]
  65. public override DataTable[] FillSchema (DataSet ds, SchemaType type) {
  66. throw new NotImplementedException ();
  67. }
  68. [MonoTODO]
  69. public DataTable FillSchema (DataTable dt, SchemaType type) {
  70. throw new NotImplementedException ();
  71. }
  72. [MonoTODO]
  73. public DataTable[] FillSchema (DataSet ds, SchemaType type, string s) {
  74. throw new NotImplementedException ();
  75. }
  76. [MonoTODO]
  77. protected virtual DataTable FillSchema (DataTable dt,
  78. SchemaType type,
  79. IDbCommand idc,
  80. CommandBehavior behavior) {
  81. throw new NotImplementedException ();
  82. }
  83. [MonoTODO]
  84. protected virtual DataTable[] FillSchema (DataSet ds,
  85. SchemaType type,
  86. IDbCommand idc,
  87. string s,
  88. CommandBehavior behavior) {
  89. throw new NotImplementedException ();
  90. }
  91. [MonoTODO]
  92. public override IDataParameter[] GetFillParameters() {
  93. throw new NotImplementedException ();
  94. }
  95. [MonoTODO]
  96. public int Update (DataRow[] row) {
  97. throw new NotImplementedException ();
  98. }
  99. [MonoTODO]
  100. public override int Update (DataSet ds) {
  101. throw new NotImplementedException ();
  102. }
  103. [MonoTODO]
  104. public int Update (DataTable dt) {
  105. throw new NotImplementedException ();
  106. }
  107. [MonoTODO]
  108. protected virtual int Update (DataRow[] row, DataTableMapping dtm) {
  109. throw new NotImplementedException ();
  110. }
  111. [MonoTODO]
  112. public int Update (DataSet ds, string s) {
  113. throw new NotImplementedException ();
  114. }
  115. protected abstract RowUpdatedEventArgs CreateRowUpdatedEvent(
  116. DataRow dataRow,
  117. IDbCommand command,
  118. StatementType statementType,
  119. DataTableMapping tableMapping);
  120. protected abstract RowUpdatingEventArgs CreateRowUpdatingEvent(
  121. DataRow dataRow,
  122. IDbCommand command,
  123. StatementType statementType,
  124. DataTableMapping tableMapping);
  125. [MonoTODO]
  126. protected virtual void OnFillError(FillErrorEventArgs value) {
  127. throw new NotImplementedException ();
  128. }
  129. protected abstract void OnRowUpdated(RowUpdatedEventArgs value);
  130. protected abstract void OnRowUpdating(RowUpdatingEventArgs value);
  131. public event FillErrorEventHandler FillError;
  132. }
  133. }