V6Client.cs 459 B

123456789101112131415161718192021222324252627282930
  1. using System;
  2. using System.Data.SqlClient;
  3. namespace PRSDesktop;
  4. public class V6Client : IDisposable
  5. {
  6. protected SqlConnection? _connection;
  7. public V6Client()
  8. {
  9. }
  10. public bool Connect()
  11. {
  12. _connection = new SqlConnection();
  13. return true;
  14. }
  15. public void Dispose()
  16. {
  17. if (_connection != null)
  18. {
  19. _connection.Dispose();
  20. _connection = null;
  21. }
  22. }
  23. }