Esempio n. 1
0
 /// <summary>
 /// 删除表
 /// </summary>
 internal static void Drop()
 {
     foreach (var tableName in _indexs)
     {
         var sql = DropTable.Create(tableName).Build(null);
         SqlHelper.Execute(tableName, sql);
     }
     _built.Clear();
 }
Esempio n. 2
0
 /// <summary>
 /// 删除表
 /// </summary>
 internal static void Drop()
 {
     DataContext.UseTransactionScope(() =>
     {
         foreach (var tableName in _indexs)
         {
             var sql = DropTable.Create(tableName).Build(null, null);
             SqlHelper.Execute(tableName, sql);
         }
     });
     _built.Clear();
 }