Пример #1
0
 private static void ResetSchema(TransactionContextCreator contextCreator)
 {
     try
     {
         using (var ctx = contextCreator.Create())
         {
             FeatureManager.DropSchema(ctx);
             ctx.Complete();
         }
     }
     catch (Exception _)
     {
     }
     try
     {
         using (var ctx = contextCreator.Create())
         {
             FeatureManager.CreateSchema(ctx);
             ctx.Complete();
         }
     }
     catch (Exception _)
     {
     }
 }