You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
29 lines
763 B
29 lines
763 B
using System.Data;
|
|
using System.Text;
|
|
using Monitor.Models;
|
|
using Monitor.IRepositories;
|
|
using Monitor.Repositories;
|
|
|
|
namespace DataBase.MySql.Tool
|
|
{
|
|
/// <summary>
|
|
/// 电表能耗累计值操作类
|
|
/// </summary>
|
|
public class SEgEMeterTotalEnergyValue
|
|
{
|
|
|
|
private TEgEmeterTotalEnergyValueRepository _dalEgEmeterTotalEnergyValueRepository;
|
|
|
|
public SEgEMeterTotalEnergyValue()
|
|
{
|
|
_dalEgEmeterTotalEnergyValueRepository = new TEgEmeterTotalEnergyValueRepository(DBTool.Instance.MyDbContext());
|
|
}
|
|
|
|
public async Task<int> AddEMeterTotalEnergyValue(TEgEmeterTotalEnergyValue val)
|
|
{
|
|
return await _dalEgEmeterTotalEnergyValueRepository.Insert(val);
|
|
}
|
|
|
|
}
|
|
}
|