AbPrivoder.cs 563 B

1234567891011121314151617181920212223
  1. using SqlSugar;
  2. using System;
  3. using System.Collections.Generic;
  4. using System.Configuration;
  5. using System.Linq;
  6. using System.Text;
  7. using System.Threading.Tasks;
  8. namespace HH.YiDaSyncNC.Helper
  9. {
  10. public class AbPrivoder
  11. {
  12. protected SqlSugarClient db = new SqlSugarClient(
  13. new ConnectionConfig()
  14. {
  15. ConnectionString = ConfigurationManager.AppSettings["conn"].ToString(),
  16. DbType = DbType.SqlServer,
  17. IsAutoCloseConnection = true,
  18. InitKeyType = InitKeyType.Attribute
  19. });
  20. }
  21. }