namespace Tiobon.Core.Services; /// /// 参数配置 (服务) /// public class Ghre_ConfigServices : BaseServices, IGhre_ConfigServices { private readonly IBaseRepository _dal; public Ghre_ConfigServices(ICaching caching, IBaseRepository dal) { this._dal = dal; base.BaseDal = dal; base._caching = caching; } public async Task BulkUpdateValue(List entitys) { for (int i = 0; i < entitys.Count; i++) { await Db.Updateable() .SetColumns(it => new Ghre_Config() { ConfigValue = entitys[i].ConfigValue }) .Where(x => x.Id == entitys[i].Id).ExecuteCommandAsync(); } return ServiceResult.OprateSuccess(); } }