using DW5S.Entity; using Microsoft.AspNetCore.Mvc.RazorPages; using Microsoft.EntityFrameworkCore; using System; using System.Collections; using System.Collections.Generic; using System.IO; using System.Linq; using System.Linq.Expressions; using System.Text; using System.Threading.Tasks; namespace DW5S.Repostory { /// /// /// public class RefTaskFreqRepository : Repository { public RefTaskFreqRepository(OracleContext ctx) : base(ctx) { } /// /// 修改RefTaskFreq Enable /// /// /// public async Task UpdateEnableAsync(bool enable, Expression> predicate = null) { return await dbSet.Where(predicate) .ExecuteUpdateAsync(setters => setters.SetProperty(b => b.Enable, enable)); } } }