Skip to content

Commit 297dbf8

Browse files
author
zzzprojects
committed
Add UseTagsAsCacheKey && Rename FirstTag
Add UseTagsAsCacheKey && Rename FirstTag
1 parent 7509dbf commit 297dbf8

File tree

4 files changed

+21
-10
lines changed

4 files changed

+21
-10
lines changed

src/test/Z.Test.EntityFramework.Plus.EF5/QueryCache/WithInclude/IncludeOptimized.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
// More projects: http://www.zzzprojects.com/
66
// Copyright © ZZZ Projects Inc. 2014 - 2016. All rights reserved.
77

8+
#if EF5 || EF6
89
using System.Collections.Generic;
910
using System.Linq;
1011
using Microsoft.VisualStudio.TestTools.UnitTesting;
@@ -52,4 +53,5 @@ public void IncludeOptimized()
5253
}
5354
}
5455
}
55-
}
56+
}
57+
#endif

src/test/Z.Test.EntityFramework.Plus.EF5/Z.Test.EntityFramework.Plus.EF5.csproj

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -305,9 +305,6 @@
305305
<Compile Include="QueryCache\ExpireAll\Queryable_WithDefault.cs" />
306306
<Compile Include="QueryCache\ExpireAll\Queryable_WithExpiration.cs" />
307307
<Compile Include="QueryCache\ExpireAll\Queryable_WithTag.cs" />
308-
<Compile Include="QueryCache\ForceFirstTagAsCacheKey\Many.cs" />
309-
<Compile Include="QueryCache\ForceFirstTagAsCacheKey\None.cs" />
310-
<Compile Include="QueryCache\ForceFirstTagAsCacheKey\Single.cs" />
311308
<Compile Include="QueryCache\FromCacheAsync\Queryable_WithDefault.cs" />
312309
<Compile Include="QueryCache\FromCacheAsync\Queryable_WithExpiration.cs" />
313310
<Compile Include="QueryCache\FromCacheAsync\QueryDeferred_WithDefault.cs" />
@@ -325,14 +322,21 @@
325322
<Compile Include="QueryCache\QueryCache_CacheKey.cs" />
326323
<Compile Include="QueryCache\QueryCache_CacheKeyFactory.cs" />
327324
<Compile Include="QueryCache\QueryCache_ExpireAll.cs" />
328-
<Compile Include="QueryCache\QueryCache_ForceFirstTagAsCacheKey.cs" />
329325
<Compile Include="QueryCache\QueryCache_FromCache.cs" />
330326
<Compile Include="QueryCache\QueryCache_FromCacheAsync.cs" />
331327
<Compile Include="QueryCache\QueryCache_Tag.cs" />
328+
<Compile Include="QueryCache\QueryCache_UseFirstTagAsCacheKey.cs" />
329+
<Compile Include="QueryCache\QueryCache_UseTagsAsCacheKey.cs" />
332330
<Compile Include="QueryCache\QueryCache_WithInclude.cs" />
333331
<Compile Include="QueryCache\Tag\Equal.cs" />
334332
<Compile Include="QueryCache\Tag\Expire.cs" />
335333
<Compile Include="QueryCache\Tag\NotEqual.cs" />
334+
<Compile Include="QueryCache\UseFirstTagAsCacheKey\Many.cs" />
335+
<Compile Include="QueryCache\UseFirstTagAsCacheKey\None.cs" />
336+
<Compile Include="QueryCache\UseFirstTagAsCacheKey\Single.cs" />
337+
<Compile Include="QueryCache\UseTagsAsCacheKey\Many.cs" />
338+
<Compile Include="QueryCache\UseTagsAsCacheKey\None.cs" />
339+
<Compile Include="QueryCache\UseTagsAsCacheKey\Single.cs" />
336340
<Compile Include="QueryCache\WithInclude\IncludeFilter.cs" />
337341
<Compile Include="QueryCache\WithInclude\IncludeOptimized.cs" />
338342
<Compile Include="QueryDeferred\ExecuteAsync\Executor.cs" />

src/test/Z.Test.EntityFramework.Plus.EF6/ExceptionMessage.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,8 @@ internal class ExceptionMessage
2424
public static string BatchOperations_AssemblyNotFound = "Oops! The assembly 'Microsoft.EntityFrameworkCore.SqlServer' could not be found. This feature is only supported for SQL Server for .NET Core. For more information, contact us: [email protected]";
2525
#endif
2626
#if FULL || QUERY_CACHE
27-
public static string QueryCache_FirstTagNullOrEmpty = "Oops! The option 'ForceFirstTagAsCacheKey' is enabled but we found no tag, an empty string, or a null string instead. Make sure a tag is provided, and it's not null or empty. For more information, contact us: [email protected]";
27+
public static string QueryCache_FirstTagNullOrEmpty = "Oops! The option 'UseFirstTagAsCacheKey' is enabled but we found no tag, an empty tag string, or a null tag string instead. Make sure a tag is provided, and it's not null or empty. For more information, contact us: [email protected]";
28+
public static string QueryCache_UseTagsNullOrEmpty = "Oops! The option 'UseTagsAsCacheKey' is enabled but we found no tag, an empty tag string, or a null tag string instead. Make sure a tag is provided, and it's not null or empty. For more information, contact us: [email protected]";
2829
#endif
2930
#if FULL || QUERY_INCLUDEFILTER
3031
public static string QueryIncludeFilter_ArgumentExpression = "Oops! immediate method with expression argument are not supported in EF+ Query IncludeFilter. For more information, contact us: [email protected]";

src/test/Z.Test.EntityFramework.Plus.EF6/Z.Test.EntityFramework.Plus.EF6.csproj

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -301,13 +301,17 @@
301301
<Compile Include="QueryCache\ExpireAll\Queryable_WithTag.cs" />
302302
<Compile Include="QueryCache\ExpireAll\Queryable_WithDefault.cs" />
303303
<Compile Include="QueryCache\ExpireAll\Queryable_WithExpiration.cs" />
304-
<Compile Include="QueryCache\ForceFirstTagAsCacheKey\Single.cs" />
305-
<Compile Include="QueryCache\ForceFirstTagAsCacheKey\Many.cs" />
306-
<Compile Include="QueryCache\ForceFirstTagAsCacheKey\None.cs" />
304+
<Compile Include="QueryCache\UseTagsAsCacheKey\Many.cs" />
305+
<Compile Include="QueryCache\UseTagsAsCacheKey\None.cs" />
306+
<Compile Include="QueryCache\UseTagsAsCacheKey\Single.cs" />
307+
<Compile Include="QueryCache\UseFirstTagAsCacheKey\Single.cs" />
308+
<Compile Include="QueryCache\UseFirstTagAsCacheKey\Many.cs" />
309+
<Compile Include="QueryCache\UseFirstTagAsCacheKey\None.cs" />
307310
<Compile Include="QueryCache\FromCacheAsync\QueryDeferred_WithNull.cs" />
308311
<Compile Include="QueryCache\FromCache\QueryDeferred_WithNull.cs" />
309312
<Compile Include="QueryCache\QueryCache_CacheKeyFactory.cs" />
310-
<Compile Include="QueryCache\QueryCache_ForceFirstTagAsCacheKey.cs" />
313+
<Compile Include="QueryCache\QueryCache_UseTagsAsCacheKey.cs" />
314+
<Compile Include="QueryCache\QueryCache_UseFirstTagAsCacheKey.cs" />
311315
<Compile Include="QueryCache\QueryCache_WithInclude.cs" />
312316
<Compile Include="QueryCache\QueryCache_ExpireAll.cs" />
313317
<Compile Include="QueryCache\WithInclude\IncludeFilter.cs" />

0 commit comments

Comments
 (0)