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