Пример #1
0
 /// <summary>
 /// 批量更新数据表
 /// </summary>
 /// <param name="dt"></param>
 /// <param name="Tname"></param>
 /// <returns></returns>
 public static bool UpdateDT4Copy(DataTable dt, string Tname)
 {
     try
     {
         ConnHelper.SQLBulkCopy(dt, Tname);
         return(true);
     }
     catch (Exception)
     {
         return(false);
     }
 }