123456789101112131415161718192021222324252627282930313233343536 |
- 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
- {
- /// <summary>
- ///
- /// </summary>
- public class RefTaskFreqRepository : Repository<RefTaskFreq>
- {
- public RefTaskFreqRepository(OracleContext ctx)
- : base(ctx)
- {
- }
- /// <summary>
- /// 修改RefTaskFreq Enable
- /// </summary>
- /// <param name="satCode"></param>
- /// <returns></returns>
- public async Task<int> UpdateEnableAsync(bool enable, Expression<Func<RefTaskFreq, bool>> predicate = null)
- {
- return await dbSet.Where(predicate)
- .ExecuteUpdateAsync(setters => setters.SetProperty(b => b.Enable, enable));
- }
- }
- }
|