public GroupMeter CreateNewGroupMeter(GroupMeterView record) { GroupMeter gm = new GroupMeter(); gm.GroupID = record.GroupID; gm.MeterID = record.MeterID; return(gm); }
public void UpdateGroupMeterView(GroupMeterView record) { DataContext.Table <GroupMeter>().UpdateRecord(CreateNewGroupMeter(record)); }
public void AddNewGroupMeterView(GroupMeterView record) { DataContext.Table <GroupMeter>().AddNewRecord(CreateNewGroupMeter(record)); }