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
@ -1820,7 +1820,14 @@ namespace SqlSugar
|
|||||||
var moreSetts = this.Context.CurrentConnectionConfig.MoreSettings;
|
var moreSetts = this.Context.CurrentConnectionConfig.MoreSettings;
|
||||||
if (moreSetts != null && moreSetts.IsWithNoLockQuery && string.IsNullOrEmpty(QueryBuilder.TableWithString))
|
if (moreSetts != null && moreSetts.IsWithNoLockQuery && string.IsNullOrEmpty(QueryBuilder.TableWithString))
|
||||||
{
|
{
|
||||||
this.With(SqlWith.NoLock);
|
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)
|
protected List<TResult> GetData<TResult>(KeyValuePair<string, List<SugarParameter>> sqlObj)
|
||||||
|
@ -9,6 +9,7 @@ namespace SqlSugar
|
|||||||
{
|
{
|
||||||
public bool IsAutoRemoveDataCache { get; set; }
|
public bool IsAutoRemoveDataCache { get; set; }
|
||||||
public bool IsWithNoLockQuery { get; set; }
|
public bool IsWithNoLockQuery { get; set; }
|
||||||
|
public bool DisableWithNoLockWithTran { get; set; }
|
||||||
public bool IsWithNoLockSubquery { get; set; }
|
public bool IsWithNoLockSubquery { get; set; }
|
||||||
|
|
||||||
public bool DisableNvarchar { get; set; }
|
public bool DisableNvarchar { get; set; }
|
||||||
|
@ -641,6 +641,7 @@ namespace SqlSugar
|
|||||||
PgSqlIsAutoToLowerCodeFirst= it.MoreSettings.PgSqlIsAutoToLowerCodeFirst,
|
PgSqlIsAutoToLowerCodeFirst= it.MoreSettings.PgSqlIsAutoToLowerCodeFirst,
|
||||||
IsAutoRemoveDataCache = it.MoreSettings.IsAutoRemoveDataCache,
|
IsAutoRemoveDataCache = it.MoreSettings.IsAutoRemoveDataCache,
|
||||||
IsWithNoLockQuery = it.MoreSettings.IsWithNoLockQuery,
|
IsWithNoLockQuery = it.MoreSettings.IsWithNoLockQuery,
|
||||||
|
DisableWithNoLockWithTran=it.MoreSettings.DisableWithNoLockWithTran,
|
||||||
TableEnumIsString = it.MoreSettings.TableEnumIsString,
|
TableEnumIsString = it.MoreSettings.TableEnumIsString,
|
||||||
DisableMillisecond = it.MoreSettings.DisableMillisecond,
|
DisableMillisecond = it.MoreSettings.DisableMillisecond,
|
||||||
DbMinDate=it.MoreSettings.DbMinDate,
|
DbMinDate=it.MoreSettings.DbMinDate,
|
||||||
|
Loading…
Reference in New Issue
Block a user