2
0

OleDbCommandBuilder.cs 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118
  1. //
  2. // System.Data.OleDb.OleDbCommandBuilder
  3. //
  4. // Author:
  5. // Rodrigo Moya ([email protected])
  6. // Tim Coleman ([email protected])
  7. //
  8. // Copyright (C) Rodrigo Moya, 2002
  9. // Copyright (C) Tim Coleman, 2002
  10. //
  11. using System.ComponentModel;
  12. using System.Data;
  13. using System.Data.Common;
  14. namespace System.Data.OleDb
  15. {
  16. /// <summary>
  17. /// Provides a means of automatically generating single-table commands used to reconcile changes made to a DataSet with the associated database. This class cannot be inherited.
  18. /// </summary>
  19. public sealed class OleDbCommandBuilder : Component
  20. {
  21. #region Fields
  22. OleDbDataAdapter adapter;
  23. string quotePrefix;
  24. string quoteSuffix;
  25. #endregion // Fields
  26. #region Constructors
  27. public OleDbCommandBuilder ()
  28. {
  29. adapter = null;
  30. quotePrefix = String.Empty;
  31. quoteSuffix = String.Empty;
  32. }
  33. public OleDbCommandBuilder (OleDbDataAdapter adapter)
  34. : this ()
  35. {
  36. this.adapter = adapter;
  37. }
  38. #endregion // Constructors
  39. #region Properties
  40. public OleDbDataAdapter DataAdapter {
  41. get {
  42. return adapter;
  43. }
  44. set {
  45. adapter = value;
  46. }
  47. }
  48. public string QuotePrefix {
  49. get {
  50. return quotePrefix;
  51. }
  52. set {
  53. quotePrefix = value;
  54. }
  55. }
  56. public string QuoteSuffix {
  57. get {
  58. return quoteSuffix;
  59. }
  60. set {
  61. quoteSuffix = value;
  62. }
  63. }
  64. #endregion // Properties
  65. #region Methods
  66. public static void DeriveParameters (OleDbCommand command)
  67. {
  68. throw new NotImplementedException ();
  69. }
  70. [MonoTODO]
  71. protected override void Dispose (bool disposing)
  72. {
  73. throw new NotImplementedException ();
  74. }
  75. [MonoTODO]
  76. public OleDbCommand GetDeleteCommand ()
  77. {
  78. throw new NotImplementedException ();
  79. }
  80. [MonoTODO]
  81. public OleDbCommand GetInsertCommand ()
  82. {
  83. throw new NotImplementedException ();
  84. }
  85. [MonoTODO]
  86. public OleDbCommand GetUpdatetCommand ()
  87. {
  88. throw new NotImplementedException ();
  89. }
  90. [MonoTODO]
  91. public void RefreshSchema ()
  92. {
  93. throw new NotImplementedException ();
  94. }
  95. #endregion // Methods
  96. }
  97. }