using ce.autofac.extension; using learun.iapplication; using System.Collections.Generic; using System.Threading.Tasks; namespace learun.application { /// /// 版 本 EasyCode EC管理后台 /// Copyright (c) 2019-present EC管理有限公司 /// 创建人:tobin /// 日 期:2019.10.23 /// 描 述:数据表草稿 /// public class DbDraftBLL : BLLBase, DbDraftIBLL, BLL { private readonly DbDraftService dbDraftService = new DbDraftService(); #region 获取数据 /// /// 获取列表数据 /// /// 查询参数 /// public Task> GetList(string queryJson) { return dbDraftService.GetList(queryJson); } /// /// 获取实体数据 /// /// 主键 /// public Task GetEntity(string keyValue) { return dbDraftService.GetEntity(keyValue); } #endregion 获取数据 #region 提交数据 /// /// 删除实体数据 /// /// 主键 /// public async Task DeleteEntity(string keyValue) { await dbDraftService.DeleteEntity(keyValue); } /// /// 保存实体数据(新增、修改) /// /// 主键 /// 实体数据 /// public async Task SaveEntity(string keyValue, DbDraftEntity entity) { await dbDraftService.SaveEntity(keyValue, entity); } #endregion 提交数据 } }