using SqlSugar; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Repository { internal static class SqlSugarExtensions { internal static ISugarQueryable WithNoLockOrNot(this ISugarQueryable query, bool @lock = false) { if (@lock) { query = query.With(SqlWith.NoLock); } return query; } } }