예제 #1
0
 public void AddComparisonResult(ComparisonResult comparisonResult)
 {
     using (var context = new MaatAppDBContext())
     {
         context.Add <ComparisonResult>(comparisonResult);
         context.SaveChanges();
     }
 }
예제 #2
0
 public void AddTask(Task task)
 {
     using (var context = new MaatAppDBContext())
     {
         context.Add <Task>(task);
         context.SaveChanges();
     }
 }
예제 #3
0
 public void AddFile(FileEntry file)
 {
     using (var context = new MaatAppDBContext())
     {
         context.Add <FileEntry>(file);
         context.SaveChanges();
     }
 }