OleDbCommandBuilder.cs 822 B

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. //
  2. // System.Data.OleDb.OleDbCommandBuilder
  3. //
  4. // Author:
  5. // Rodrigo Moya ([email protected])
  6. //
  7. // Copyright (C) Rodrigo Moya, 2002
  8. //
  9. using System.ComponentModel;
  10. using System.Data;
  11. using System.Data.Common;
  12. namespace System.Data.OleDb
  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 OleDbCommandBuilder : Component
  18. {
  19. private OleDbDataAdapter m_adapter = null;
  20. public OleDbCommandBuilder ()
  21. {
  22. }
  23. public OleDbCommandBuilder (OleDbDataAdapter adapter) : this ()
  24. {
  25. m_adapter = adapter;
  26. }
  27. public OleDbDataAdapter DataAdapter
  28. {
  29. get {
  30. return m_adapter;
  31. }
  32. set {
  33. m_adapter = value;
  34. }
  35. }
  36. }
  37. }