Beispiel #1
0
 protected override void AddMultiple(METERING[] dataItems)
 {
     using (var context = new MirEntities())
     {
         context.METERINGS.AddRange(dataItems);
         context.SaveChanges();
     }
 }
Beispiel #2
0
 public override void ClearSource()
 {
     using (var context = new MirEntities())
     {
         context.METERINGS.RemoveRange(context.METERINGS);
         context.SaveChanges();
     }
 }
Beispiel #3
0
 protected override void AddSingle(METERING item)
 {
     using (var context = new MirEntities())
     {
         context.METERINGS.Add(item);
         context.SaveChanges();
     }
 }