You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

13 lines
286 B

9 months ago
using SqlSugar;
7 months ago
namespace Repository;
internal static class SqlSugarExtensions
9 months ago
{
7 months ago
internal static ISugarQueryable<T> WithNoLockOrNot<T>(this ISugarQueryable<T> query, bool @lock = false)
9 months ago
{
7 months ago
if (@lock) query = query.With(SqlWith.NoLock);
9 months ago
7 months ago
return query;
9 months ago
}
7 months ago
}