static void TestPatientTransaction() { var pMap = new PatientsMapping(); pMap.CreatePatientMapping(); TransactionManager.ExecuteTransaction(); //var pCount = TransactionManager.DatabaseContext.Patients.Count(); //var dCount = TransactionManager.DatabaseContext.DatabaseInfoes.Count(); //System.Console.WriteLine(pCount); //System.Console.WriteLine(dCount); //System.Console.ReadLine(); }
private static void TestDmdataMapping() { MigrationVariables.Init(); TableAgentCollection.Populate(new List <string> { "PATIENTS", "DMDATA" }); PatientsMapping pMap = new PatientsMapping(); pMap.CreatePatientMapping(); DMDataMapping map = new DMDataMapping(); map.CreateDMDataMapping(); }