public static void InsertJob() { Job job = new Job(); job.JobType = "repairaaaa"; JobService jobService = new JobDao(); for (int i = 0; i < 10; i++) { jobService.insertOrUpdateOneJob(job); } }
public static void updateJob() { Job job = new Job(); // job.JobType = "new type222"; job.JobID = "3"; // job.OpenDate = "May 5 2020"; // job.CloseDate = "Jun 6 2020"; // job.PriorityLevel = "02222"; // job.JobStatus = "closed"; // job.DeskStaffID = "0099"; // job.WorkerID = "worker id"; job.CarID = "carid"; JobService jobService = new JobDao(); jobService.insertOrUpdateOneJob(job); }