CacheIF BUG

This commit is contained in:
sunkaixuan
2018-01-17 14:51:44 +08:00
parent cbc48816d4
commit f7c945e91a

View File

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