mirror of
https://github.com/CoreUnion/CoreShop.git
synced 2026-10-16 21:08:47 +08:00
74975812b0
* 删除一些冗余代码
18 lines
301 B
C#
18 lines
301 B
C#
using SqlSugar;
|
|
|
|
namespace CoreCms.Net.Repository
|
|
{
|
|
internal static class SqlSugarExtensions
|
|
{
|
|
internal static ISugarQueryable<T> WithNoLockOrNot<T>(this ISugarQueryable<T> query,bool @lock = false)
|
|
{
|
|
if (@lock)
|
|
{
|
|
query = query.With(SqlWith.NoLock);
|
|
}
|
|
|
|
return query;
|
|
}
|
|
}
|
|
}
|