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