using System.Data; using System.Text; using Monitor.Models; using Monitor.IRepositories; using Monitor.Repositories; namespace DataBase.MySql.Tool { /// /// 电表能耗累计值操作类 /// public class SEgEMeterTotalEnergyValue { private TEgEmeterTotalEnergyValueRepository _dalEgEmeterTotalEnergyValueRepository; public SEgEMeterTotalEnergyValue() { _dalEgEmeterTotalEnergyValueRepository = new TEgEmeterTotalEnergyValueRepository(DBTool.Instance.MyDbContext()); } public async Task AddEMeterTotalEnergyValue(TEgEmeterTotalEnergyValue val) { return await _dalEgEmeterTotalEnergyValueRepository.Insert(val); } } }