public async Task <int> Insert(List <TEntity> entitys) { var sqls = new List <string>(); foreach (var entity in entitys) { string sql = EntityToSql.AddSql(entity); sqls.Add(sql); } await dbHelper.ExecuteSqlTran(sqls); return(sqls.Count); }