using New_College.IRepository; using New_College.IRepository.UnitOfWork; using New_College.Model.Models; using New_College.Repository.Base; using System.Collections.Generic; using System.Diagnostics; using System.Threading.Tasks; namespace New_College.Repository { /// /// D_PlanMajorDescRepository /// public class D_PlanMajorDescRepository : BaseRepository, ID_PlanMajorDescRepository { public D_PlanMajorDescRepository(IUnitOfWork unitOfWork) : base(unitOfWork) { } /// /// /// /// /// public async Task Batchupdate(List majorDescs) { // int k = this.Db.Updateable(majorDescs).ExecuteCommand(); // this.Db.Fastest().BulkUpdate(GetList()) //适合大批量更新 var kk = await this.Db.Fastest().BulkUpdateAsync(majorDescs); return kk > 0; } } }