Exemplo n.º 1
0
 public void CreateTables()
 {
     NonAsyncDb.CreateTable <UserAccount>();
     NonAsyncDb.CreateTable <DBCustomForm>();
     NonAsyncDb.CreateTable <DBCustomFormQuestion>();
     NonAsyncDb.CreateTable <DBFormInstance>();
     NonAsyncDb.CreateTable <DBFormField>();
     NonAsyncDb.CreateTable <DBFormInstanceAttachment>();
     NonAsyncDb.CreateTable <DBQualPlan>();
     NonAsyncDb.CreateTable <DBQualPlanDet>();
     NonAsyncDb.CreateTable <DBSite>();
     NonAsyncDb.CreateTable <DBPickItem>();
     NonAsyncDb.CreateTable <DBOfficer>();
     NonAsyncDb.CreateTable <DBOrganisation>();
     NonAsyncDb.CreateTable <DBLearner>();
     NonAsyncDb.CreateTable <DBApplicant>();
 }
Exemplo n.º 2
0
 public void DropAndCreateDatabase()
 {
     NonAsyncDb.TableMappings.ForEach(table => { NonAsyncDb.DropTable(table); });
     CreateTables();
 }