chore: 🔨 iSelect 扩展方法增强

[skip ci]
This commit is contained in:
tk 2024-11-29 17:43:56 +08:00 committed by nsnail
parent 4874a58eee
commit f5203782aa

View File

@ -9,10 +9,11 @@ public static class ISelectExtensions
/// 无锁无等待 /// 无锁无等待
/// </summary> /// </summary>
public static ISelect<T1> WithNoLockNoWait<T1>(this ISelect<T1> me) public static ISelect<T1> WithNoLockNoWait<T1>(this ISelect<T1> me)
where T1 : class
{ {
return me return me
#if DBTYPE_SQLSERVER #if DBTYPE_SQLSERVER
.WithLock(SqlServerLock.NoLock | SqlServerLock.NoWait) .WithLock(SqlServerLock.NoLock | SqlServerLock.NoWait)
#endif #endif
; ;
} }
@ -21,11 +22,12 @@ public static class ISelectExtensions
/// 无锁无等待 /// 无锁无等待
/// </summary> /// </summary>
public static ISelect<T1, T2> WithNoLockNoWait<T1, T2>(this ISelect<T1, T2> me) public static ISelect<T1, T2> WithNoLockNoWait<T1, T2>(this ISelect<T1, T2> me)
where T1 : class //
where T2 : class where T2 : class
{ {
return me return me
#if DBTYPE_SQLSERVER #if DBTYPE_SQLSERVER
.WithLock(SqlServerLock.NoLock | SqlServerLock.NoWait) .WithLock(SqlServerLock.NoLock | SqlServerLock.NoWait)
#endif #endif
; ;
} }
@ -34,12 +36,13 @@ public static class ISelectExtensions
/// 无锁无等待 /// 无锁无等待
/// </summary> /// </summary>
public static ISelect<T1, T2, T3> WithNoLockNoWait<T1, T2, T3>(this ISelect<T1, T2, T3> me) public static ISelect<T1, T2, T3> WithNoLockNoWait<T1, T2, T3>(this ISelect<T1, T2, T3> me)
where T1 : class //
where T2 : class // where T2 : class //
where T3 : class where T3 : class
{ {
return me return me
#if DBTYPE_SQLSERVER #if DBTYPE_SQLSERVER
.WithLock(SqlServerLock.NoLock | SqlServerLock.NoWait) .WithLock(SqlServerLock.NoLock | SqlServerLock.NoWait)
#endif #endif
; ;
} }
@ -48,13 +51,14 @@ public static class ISelectExtensions
/// 无锁无等待 /// 无锁无等待
/// </summary> /// </summary>
public static ISelect<T1, T2, T3, T4> WithNoLockNoWait<T1, T2, T3, T4>(this ISelect<T1, T2, T3, T4> me) public static ISelect<T1, T2, T3, T4> WithNoLockNoWait<T1, T2, T3, T4>(this ISelect<T1, T2, T3, T4> me)
where T1 : class //
where T2 : class // where T2 : class //
where T3 : class // where T3 : class //
where T4 : class where T4 : class
{ {
return me return me
#if DBTYPE_SQLSERVER #if DBTYPE_SQLSERVER
.WithLock(SqlServerLock.NoLock | SqlServerLock.NoWait) .WithLock(SqlServerLock.NoLock | SqlServerLock.NoWait)
#endif #endif
; ;
} }
@ -63,6 +67,7 @@ public static class ISelectExtensions
/// 无锁无等待 /// 无锁无等待
/// </summary> /// </summary>
public static ISelect<T1, T2, T3, T4, T5> WithNoLockNoWait<T1, T2, T3, T4, T5>(this ISelect<T1, T2, T3, T4, T5> me) public static ISelect<T1, T2, T3, T4, T5> WithNoLockNoWait<T1, T2, T3, T4, T5>(this ISelect<T1, T2, T3, T4, T5> me)
where T1 : class //
where T2 : class // where T2 : class //
where T3 : class // where T3 : class //
where T4 : class // where T4 : class //
@ -70,7 +75,7 @@ public static class ISelectExtensions
{ {
return me return me
#if DBTYPE_SQLSERVER #if DBTYPE_SQLSERVER
.WithLock(SqlServerLock.NoLock | SqlServerLock.NoWait) .WithLock(SqlServerLock.NoLock | SqlServerLock.NoWait)
#endif #endif
; ;
} }
@ -79,6 +84,7 @@ public static class ISelectExtensions
/// 无锁无等待 /// 无锁无等待
/// </summary> /// </summary>
public static ISelect<T1, T2, T3, T4, T5, T6> WithNoLockNoWait<T1, T2, T3, T4, T5, T6>(this ISelect<T1, T2, T3, T4, T5, T6> me) public static ISelect<T1, T2, T3, T4, T5, T6> WithNoLockNoWait<T1, T2, T3, T4, T5, T6>(this ISelect<T1, T2, T3, T4, T5, T6> me)
where T1 : class //
where T2 : class // where T2 : class //
where T3 : class // where T3 : class //
where T4 : class // where T4 : class //
@ -87,7 +93,7 @@ public static class ISelectExtensions
{ {
return me return me
#if DBTYPE_SQLSERVER #if DBTYPE_SQLSERVER
.WithLock(SqlServerLock.NoLock | SqlServerLock.NoWait) .WithLock(SqlServerLock.NoLock | SqlServerLock.NoWait)
#endif #endif
; ;
} }