mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-10-15 18:55:07 +08:00
Remove code
This commit is contained in:
@@ -475,18 +475,18 @@ namespace SqlSugar
|
|||||||
this.Context.Ado.ExecuteCommand($"PRAGMA main.page_size=1024; PRAGMA main.locking_mode=EXCLUSIVE; PRAGMA main.cache_size=5000; PRAGMA main.synchronous=NORMAL; PRAGMA main.journal_mode=WAL; VACUUM INTO '{fullFileName.ToSqlFilter()}'");
|
this.Context.Ado.ExecuteCommand($"PRAGMA main.page_size=1024; PRAGMA main.locking_mode=EXCLUSIVE; PRAGMA main.cache_size=5000; PRAGMA main.synchronous=NORMAL; PRAGMA main.journal_mode=WAL; VACUUM INTO '{fullFileName.ToSqlFilter()}'");
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
private List<T> GetListOrCache<T>(string cacheKey, string sql)
|
//private List<T> GetListOrCache<T>(string cacheKey, string sql)
|
||||||
{
|
//{
|
||||||
return this.Context.Utilities.GetReflectionInoCacheInstance().GetOrCreate(cacheKey,
|
// return this.Context.Utilities.GetReflectionInoCacheInstance().GetOrCreate(cacheKey,
|
||||||
() =>
|
// () =>
|
||||||
{
|
// {
|
||||||
var isEnableLogEvent = this.Context.Ado.IsEnableLogEvent;
|
// var isEnableLogEvent = this.Context.Ado.IsEnableLogEvent;
|
||||||
this.Context.Ado.IsEnableLogEvent = false;
|
// this.Context.Ado.IsEnableLogEvent = false;
|
||||||
var reval = this.Context.Ado.SqlQuery<T>(sql);
|
// var reval = this.Context.Ado.SqlQuery<T>(sql);
|
||||||
this.Context.Ado.IsEnableLogEvent = isEnableLogEvent;
|
// this.Context.Ado.IsEnableLogEvent = isEnableLogEvent;
|
||||||
return reval;
|
// return reval;
|
||||||
});
|
// });
|
||||||
}
|
//}
|
||||||
#endregion
|
#endregion
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user