OleDbCommandBuilder.cs 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126
  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. [DataSysDescriptionAttribute ("The DataAdapter for which to automatically generate OleDbCommands")]
  41. [DefaultValue (null)]
  42. public OleDbDataAdapter DataAdapter {
  43. get {
  44. return adapter;
  45. }
  46. set {
  47. adapter = value;
  48. }
  49. }
  50. [BrowsableAttribute (false)]
  51. [DataSysDescriptionAttribute ("The prefix string wrapped around sql objects")]
  52. [DesignerSerializationVisibilityAttribute (DesignerSerializationVisibility.Hidden)]
  53. public string QuotePrefix {
  54. get {
  55. return quotePrefix;
  56. }
  57. set {
  58. quotePrefix = value;
  59. }
  60. }
  61. [BrowsableAttribute (false)]
  62. [DataSysDescriptionAttribute ("The suffix string wrapped around sql objects")]
  63. [DesignerSerializationVisibilityAttribute (DesignerSerializationVisibility.Hidden)]
  64. public string QuoteSuffix {
  65. get {
  66. return quoteSuffix;
  67. }
  68. set {
  69. quoteSuffix = value;
  70. }
  71. }
  72. #endregion // Properties
  73. #region Methods
  74. public static void DeriveParameters (OleDbCommand command)
  75. {
  76. throw new NotImplementedException ();
  77. }
  78. [MonoTODO]
  79. protected override void Dispose (bool disposing)
  80. {
  81. throw new NotImplementedException ();
  82. }
  83. [MonoTODO]
  84. public OleDbCommand GetDeleteCommand ()
  85. {
  86. throw new NotImplementedException ();
  87. }
  88. [MonoTODO]
  89. public OleDbCommand GetInsertCommand ()
  90. {
  91. throw new NotImplementedException ();
  92. }
  93. [MonoTODO]
  94. public OleDbCommand GetUpdateCommand ()
  95. {
  96. throw new NotImplementedException ();
  97. }
  98. [MonoTODO]
  99. public void RefreshSchema ()
  100. {
  101. throw new NotImplementedException ();
  102. }
  103. #endregion // Methods
  104. }
  105. }