Files
CoreShop/CoreCms.Net.Repository/SqlSugarExtensions.cs
T
capad1946 74975812b0 !212 删除BaseRepository中的一些冗余代码
* 删除一些冗余代码
2023-05-07 15:06:15 +00:00

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;
}
}
}