OdbcCommandBuilder.cs 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124
  1. //
  2. // System.Data.Odbc.OdbcCommandBuilder
  3. //
  4. // Author:
  5. // Umadevi S ([email protected])
  6. //
  7. // Copyright (C) Novell Inc, 2004
  8. //
  9. using System.ComponentModel;
  10. using System.Data;
  11. using System.Data.Common;
  12. namespace System.Data.Odbc
  13. {
  14. /// <summary>
  15. /// 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.
  16. /// </summary>
  17. public sealed class OdbcCommandBuilder : Component
  18. {
  19. #region Fields
  20. OdbcDataAdapter adapter;
  21. string quotePrefix;
  22. string quoteSuffix;
  23. #endregion // Fields
  24. #region Constructors
  25. public OdbcCommandBuilder ()
  26. {
  27. adapter = null;
  28. quotePrefix = String.Empty;
  29. quoteSuffix = String.Empty;
  30. }
  31. public OdbcCommandBuilder (OdbcDataAdapter adapter)
  32. : this ()
  33. {
  34. this.adapter = adapter;
  35. }
  36. #endregion // Constructors
  37. #region Properties
  38. [DataSysDescriptionAttribute ("The DataAdapter for which to automatically generate OleDbCommands")]
  39. [DefaultValue (null)]
  40. public OdbcDataAdapter DataAdapter {
  41. get {
  42. return adapter;
  43. }
  44. set {
  45. adapter = value;
  46. }
  47. }
  48. [BrowsableAttribute (false)]
  49. [DataSysDescriptionAttribute ("The prefix string wrapped around sql objects")]
  50. [DesignerSerializationVisibilityAttribute (DesignerSerializationVisibility.Hidden)]
  51. public string QuotePrefix {
  52. get {
  53. return quotePrefix;
  54. }
  55. set {
  56. quotePrefix = value;
  57. }
  58. }
  59. [BrowsableAttribute (false)]
  60. [DataSysDescriptionAttribute ("The suffix string wrapped around sql objects")]
  61. [DesignerSerializationVisibilityAttribute (DesignerSerializationVisibility.Hidden)]
  62. public string QuoteSuffix {
  63. get {
  64. return quoteSuffix;
  65. }
  66. set {
  67. quoteSuffix = value;
  68. }
  69. }
  70. #endregion // Properties
  71. #region Methods
  72. public static void DeriveParameters (OdbcCommand command)
  73. {
  74. throw new NotImplementedException ();
  75. }
  76. [MonoTODO]
  77. protected override void Dispose (bool disposing)
  78. {
  79. throw new NotImplementedException ();
  80. }
  81. [MonoTODO]
  82. public OdbcCommand GetDeleteCommand ()
  83. {
  84. throw new NotImplementedException ();
  85. }
  86. [MonoTODO]
  87. public OdbcCommand GetInsertCommand ()
  88. {
  89. throw new NotImplementedException ();
  90. }
  91. [MonoTODO]
  92. public OdbcCommand GetUpdateCommand ()
  93. {
  94. throw new NotImplementedException ();
  95. }
  96. [MonoTODO]
  97. public void RefreshSchema ()
  98. {
  99. throw new NotImplementedException ();
  100. }
  101. #endregion // Methods
  102. }
  103. }