Skip to content

Commit 8d1bdad

Browse files
author
zzzprojects
committed
Fix CacheKey for EFCore
Fix CacheKey for EFCore
1 parent 4e2544f commit 8d1bdad

File tree

5 files changed

+8
-4
lines changed

5 files changed

+8
-4
lines changed

src/Z.EntityFramework.Plus.EF6/QueryCache/QueryCacheManager.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -183,6 +183,7 @@ public static string GetCacheKey(IQueryable query, string[] tags)
183183
}
184184

185185
sb.AppendLine(string.Join(";", tags));
186+
sb.AppendLine(query.Expression.ToString());
186187
sb.AppendLine(command.CommandText);
187188

188189
foreach (var parameter in queryContext.ParameterValues)
@@ -262,6 +263,7 @@ public static string GetCacheKey<T>(QueryDeferred<T> query, string[] tags)
262263
}
263264

264265
sb.AppendLine(string.Join(";", tags));
266+
sb.AppendLine(query.Expression.ToString());
265267
sb.AppendLine(command.CommandText);
266268

267269
foreach (var parameter in queryContext.ParameterValues)

src/Z.EntityFramework.Plus.EFCore/Properties/AssemblyInfo.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,5 +18,5 @@
1818
[assembly: AssemblyCulture("")]
1919
[assembly: ComVisible(false)]
2020
[assembly: Guid("c41195f5-937e-4f2b-9f36-20650a804caa")]
21-
[assembly: AssemblyVersion("1.3.7")]
22-
[assembly: AssemblyFileVersion("1.3.7")]
21+
[assembly: AssemblyVersion("1.3.8")]
22+
[assembly: AssemblyFileVersion("1.3.8")]

src/Z.EntityFramework.Plus.EFCore/QueryCache/QueryCacheManager.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -181,6 +181,7 @@ public static string GetCacheKey(IQueryable query, string[] tags)
181181
}
182182

183183
sb.AppendLine(string.Join(";", tags));
184+
sb.AppendLine(query.Expression.ToString());
184185
sb.AppendLine(command.CommandText);
185186

186187
foreach (var parameter in queryContext.ParameterValues)
@@ -260,6 +261,7 @@ public static string GetCacheKey<T>(QueryDeferred<T> query, string[] tags)
260261
}
261262

262263
sb.AppendLine(string.Join(";", tags));
264+
sb.AppendLine(query.Expression.ToString());
263265
sb.AppendLine(command.CommandText);
264266

265267
foreach (var parameter in queryContext.ParameterValues)

src/Z.EntityFramework.Plus.EFCore/project.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"version": "1.3.7",
2+
"version": "1.3.8",
33
"description": "Description: EF Bulk Operations & Utilities | Bulk Insert, Update, Delete, Merge from database.",
44
"authors": [ "ZZZ Projects Inc." ],
55
"packOptions": {

version.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
v1.3.7
1+
v1.3.8

0 commit comments

Comments
 (0)