Ejemplo n.º 1
0
 public static async Task UpdatePerformanceAsync(Performance per)
 {
     using (var context = new SyncDbContext())
     {
         context.Performances.Update(per);
         await context.SaveChangesAsync();
     }
 }
Ejemplo n.º 2
0
 public static async Task UpdateSourcesAsync(Source source)
 {
     using (var context = new SyncDbContext())
     {
         context.Sources.Add(source);
         await context.SaveChangesAsync();
     }
 }
Ejemplo n.º 3
0
 public static async Task AddExceptionsAsync(IList <Exceptions> exceptions)
 {
     using (var context = new SyncDbContext())
     {
         context.Exceptions.AddRange(exceptions);
         await context.SaveChangesAsync();
     }
 }
Ejemplo n.º 4
0
 public static async Task UpdateResourcesAsync(IList <Resource> resources)
 {
     using (var context = new SyncDbContext())
     {
         context.Resources.AddRange(resources);
         await context.SaveChangesAsync();
     }
 }
Ejemplo n.º 5
0
 public static async Task AddTeamsToTable(IList <TeamTable> teams)
 {
     using (var context = new SyncDbContext())
     {
         context.TeamsTable.AddRange(teams);
         await context.SaveChangesAsync();
     }
 }
Ejemplo n.º 6
0
 private static async Task UpdateDbAsync()
 {
     using (var context = new SyncDbContext())
     {
         context.Resources.AddRange(resources);
         await context.SaveChangesAsync();
         resources= resources = new List<Resource>();
     }
 }