包:Zack.EFCore.Batch
//增加 ctx.BulkInsert(books) //删除 await ctx.DeleteRangeAsync<Book>(b=>b.Price>n||b.AuthorName=="Diff"); //更新Set(b=>b.Key,b.value) await ctx.BatchUpdate<Book>() .Set(b=>b.Price,b.Price+3) .Set(b=>b.Title,b=>s) .Set(b=>b.AuthorName,b=>b.Title.Substring(3,2)+b.AuthorName.ToUpper()) .Set(b=>b.PubTime,b=>DateTime.Now) .Where(b=>b.Id>n||b.ArthorName.StartsWith("Diff")).ExecuteAsync()