BaseDataSetvice.cs 658 B

1234567891011121314151617181920212223242526272829
  1. using SqlSugar;
  2. using System;
  3. using System.Collections.Generic;
  4. using System.Text;
  5. namespace Wms.Screen.DataService.Impl
  6. {
  7. public class BaseDataSetvice
  8. {
  9. private SqlSugarClient _client;
  10. public BaseDataSetvice(SqlSugarClient client)
  11. {
  12. _client = client;
  13. }
  14. public SqlSugarClient Client { get { return _client; } }
  15. public void BeginTran()
  16. {
  17. _client.Ado.BeginTran();
  18. }
  19. public void CommitTran()
  20. {
  21. _client.Ado.CommitTran();
  22. }
  23. public void RollbackTran()
  24. {
  25. _client.Ado.RollbackTran();
  26. }
  27. }
  28. }