WithCacheIf BUG

This commit is contained in:
610262374@qq.com
2018-09-29 14:03:47 +08:00
parent 936f11efa9
commit 46a9cbe82a

View File

@@ -628,7 +628,7 @@ namespace SqlSugar
}
public ISugarQueryable<T> WithCacheIF(bool isCache, int cacheDurationInSeconds = int.MaxValue)
{
if (IsCache)
if (isCache)
{
this.IsCache = true;
this.CacheTime = cacheDurationInSeconds;