private static void ExecuteCS0001Repository(int iteration, int disposeObjects) { try { if (disposeObjects >= 1) { using (CS0001AccpacRepository repository = new CS0001AccpacRepository(false)) { repository.InitializeSession(); repository.OpenDbLink(); repository.ReadLinkData(); repository.ReadViewData(); } } else { CS0001AccpacRepository repository = new CS0001AccpacRepository(false); repository.InitializeSession(); repository.OpenDbLink(); repository.ReadLinkData(); repository.ReadViewData(); } } catch (Exception ex) { Console.WriteLine("Iteration {0} failed: {1}", iteration, ex.Message); } }
private static void ExecuteCS0001Repository(int iteration, int disposeObjects) { try { if (disposeObjects >= 1) { using (CS0001AccpacRepository repository = new CS0001AccpacRepository(false)) { repository.InitializeSession(); repository.OpenDbLink(); repository.ReadLinkData(); repository.ReadViewData(); } } else { CS0001AccpacRepository repository = new CS0001AccpacRepository(false); repository.InitializeSession(); repository.OpenDbLink(); repository.ReadLinkData(); repository.ReadViewData(); } } catch (Exception ex) { Console.WriteLine("Iteration {0} failed: {1}", iteration, ex.Message); } }