mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-08-23 22:11:36 +08:00
Synchronization code
This commit is contained in:
parent
b52ad1d046
commit
458823d1dd
@ -1819,10 +1819,17 @@ namespace SqlSugar
|
||||
{
|
||||
var moreSetts = this.Context.CurrentConnectionConfig.MoreSettings;
|
||||
if (moreSetts != null && moreSetts.IsWithNoLockQuery && string.IsNullOrEmpty(QueryBuilder.TableWithString))
|
||||
{
|
||||
if (moreSetts.DisableWithNoLockWithTran&&this.Context.Ado.IsAnyTran())
|
||||
{
|
||||
//No With(nolock)
|
||||
}
|
||||
else
|
||||
{
|
||||
this.With(SqlWith.NoLock);
|
||||
}
|
||||
}
|
||||
}
|
||||
protected List<TResult> GetData<TResult>(KeyValuePair<string, List<SugarParameter>> sqlObj)
|
||||
{
|
||||
List<TResult> result;
|
||||
|
@ -9,6 +9,7 @@ namespace SqlSugar
|
||||
{
|
||||
public bool IsAutoRemoveDataCache { get; set; }
|
||||
public bool IsWithNoLockQuery { get; set; }
|
||||
public bool DisableWithNoLockWithTran { get; set; }
|
||||
public bool IsWithNoLockSubquery { get; set; }
|
||||
|
||||
public bool DisableNvarchar { get; set; }
|
||||
|
@ -641,6 +641,7 @@ namespace SqlSugar
|
||||
PgSqlIsAutoToLowerCodeFirst= it.MoreSettings.PgSqlIsAutoToLowerCodeFirst,
|
||||
IsAutoRemoveDataCache = it.MoreSettings.IsAutoRemoveDataCache,
|
||||
IsWithNoLockQuery = it.MoreSettings.IsWithNoLockQuery,
|
||||
DisableWithNoLockWithTran=it.MoreSettings.DisableWithNoLockWithTran,
|
||||
TableEnumIsString = it.MoreSettings.TableEnumIsString,
|
||||
DisableMillisecond = it.MoreSettings.DisableMillisecond,
|
||||
DbMinDate=it.MoreSettings.DbMinDate,
|
||||
|
Loading…
Reference in New Issue
Block a user