DbDataAdapter.cs 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142
  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;
  17. [MonoTODO]
  18. protected DbDataAdapter() {
  19. throw new NotImplementedException ();
  20. }
  21. [MonoTODO]
  22. public override int Fill(DataSet) {
  23. throw new NotImplementedException ();
  24. }
  25. [MonoTODO]
  26. public int Fill(DataTable) {
  27. throw new NotImplementedException ();
  28. }
  29. [MonoTODO]
  30. public int Fill(DataSet, string) {
  31. throw new NotImplementedException ();
  32. }
  33. [MonoTODO]
  34. protected virtual int Fill(DataTable, IDataReader) {
  35. throw new NotImplementedException ();
  36. }
  37. [MonoTODO]
  38. protected virtual int Fill(DataTable, IDbCommand, CommandBehavior) {
  39. throw new NotImplementedException ();
  40. }
  41. [MonoTODO]
  42. public int Fill(DataSet, int, int, string) {
  43. throw new NotImplementedException ();
  44. }
  45. [MonoTODO]
  46. protected virtual int Fill(DataSet, string, IDataReader, int, int) {
  47. throw new NotImplementedException ();
  48. }
  49. [MonoTODO]
  50. protected virtual int Fill(DataSet, int, int, string, IDbCommand, CommandBehavior) {
  51. throw new NotImplementedException ();
  52. }
  53. [MonoTODO]
  54. public override DataTable[] FillSchema(DataSet, SchemaType) {
  55. throw new NotImplementedException ();
  56. }
  57. [MonoTODO]
  58. public DataTable FillSchema(DataTable, SchemaType) {
  59. throw new NotImplementedException ();
  60. }
  61. [MonoTODO]
  62. public DataTable[] FillSchema(DataSet, SchemaType, string) {
  63. throw new NotImplementedException ();
  64. }
  65. [MonoTODO]
  66. protected virtual DataTable FillSchema(DataTable, SchemaType, IDbCommand, CommandBehavior) {
  67. throw new NotImplementedException ();
  68. }
  69. [MonoTODO]
  70. protected virtual DataTable[] FillSchema(DataSet, SchemaType, IDbCommand, string, CommandBehavior) {
  71. throw new NotImplementedException ();
  72. }
  73. [MonoTODO]
  74. public override IDataParameter[] GetFillParameters() {
  75. throw new NotImplementedException ();
  76. }
  77. [MonoTODO]
  78. public int Update(DataRow[]) {
  79. throw new NotImplementedException ();
  80. }
  81. [MonoTODO]
  82. public override int Update(DataSet) {
  83. throw new NotImplementedException ();
  84. }
  85. [MonoTODO]
  86. public int Update(DataTable) {
  87. throw new NotImplementedException ();
  88. }
  89. [MonoTODO]
  90. protected virtual int Update(DataRow[], DataTableMapping) {
  91. throw new NotImplementedException ();
  92. }
  93. [MonoTODO]
  94. public int Update(DataSet, string) {
  95. throw new NotImplementedException ();
  96. }
  97. protected abstract RowUpdatedEventArgs CreateRowUpdatedEvent(
  98. DataRow dataRow,
  99. IDbCommand command,
  100. StatementType statementType,
  101. DataTableMapping tableMapping);
  102. protected abstract RowUpdatingEventArgs CreateRowUpdatingEvent(
  103. DataRow dataRow,
  104. IDbCommand command,
  105. StatementType statementType,
  106. DataTableMapping tableMapping);
  107. [MonoTODO]
  108. protected virtual void OnFillError(FillErrorEventArgs value) {
  109. throw new NotImplementedException ();
  110. }
  111. protected abstract void OnRowUpdated(RowUpdatedEventArgs value);
  112. protected abstract void OnRowUpdating(RowUpdatingEventArgs value);
  113. public event FillErrorEventHandler FillError;
  114. }
  115. }