/// <summary>
 /// 构造方法
 /// </summary>
 /// <param name="connPath"></param>
 public RepositorySugar(string connPath)
 {
     _connPath = connPath;
     _context  = SugarDbContext.GetDbContextByConnPath(connPath);
     _db       = _context.Db;
     logHelper = StaticServiceProvider.Current.GetRequiredService <ILogHelper <RepositorySugar> >();
 }
 /// <summary>
 /// 构造方法
 /// </summary>
 public RepositorySugar()
 {
     _context  = SugarDbContext.GetDbContext();
     _db       = _context.Db;
     logHelper = StaticServiceProvider.Current.GetRequiredService <ILogHelper <RepositorySugar> >();
 }