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

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