Skip to content

Commit a5a33e9

Browse files
committed
Internal cache as ConcurrentDictionary
1 parent e69c842 commit a5a33e9

8 files changed

Lines changed: 30 additions & 1 deletion

File tree

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
11
using System;
2+
using System.Collections.Concurrent;
23
using System.Collections.Generic;
34
using System.Reflection;
45

56
namespace SharpRepository.Repository.Helpers
67
{
78
internal static class InternalCache
89
{
9-
internal static readonly IDictionary<Tuple<Type, Type>, PropertyInfo> PrimaryKeyMapping = new Dictionary<Tuple<Type, Type>, PropertyInfo>();
10+
internal static readonly IDictionary<Tuple<Type, Type>, PropertyInfo> PrimaryKeyMapping = new ConcurrentDictionary<Tuple<Type, Type>, PropertyInfo>();
1011
}
1112
}

SharpRepository.Samples/SharpRepository.Samples.csproj

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,7 @@
8080
<None Include="packages.config">
8181
<SubType>Designer</SubType>
8282
</None>
83+
<None Include="project.json" />
8384
</ItemGroup>
8485
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
8586
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"frameworks": { "net452": {} },
3+
"runtimes": {
4+
"win10-x64": {},
5+
"win": {}
6+
}
7+
}

SharpRepository.Tests.Integration/SharpRepository.Tests.Integration.csproj

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -216,6 +216,7 @@
216216
<None Include="App.config">
217217
<SubType>Designer</SubType>
218218
</None>
219+
<None Include="project.json" />
219220
</ItemGroup>
220221
<ItemGroup>
221222
<ProjectReference Include="..\SharpRepository.CacheRepository\SharpRepository.CacheRepository.csproj">
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"frameworks": { "net452": {} },
3+
"runtimes": {
4+
"win10-x64": {},
5+
"win": {}
6+
}
7+
}

SharpRepository.Tests/App.config

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,10 @@
5151
</entityFramework>
5252
<runtime>
5353
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
54+
<dependentAssembly>
55+
<assemblyIdentity name="System.Runtime" publicKeyToken="B03F5F7F11D50A3A" culture="neutral"/>
56+
<bindingRedirect oldVersion="0.0.0.0-4.0.10.0" newVersion="4.0.10.0"/>
57+
</dependentAssembly>
5458
<dependentAssembly>
5559
<assemblyIdentity name="Microsoft.WindowsAzure.Storage" publicKeyToken="31bf3856ad364e35" culture="neutral"/>
5660
<bindingRedirect oldVersion="0.0.0.0-2.1.0.3" newVersion="2.1.0.3"/>

SharpRepository.Tests/SharpRepository.Tests.csproj

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -198,6 +198,7 @@
198198
<None Include="packages.config">
199199
<SubType>Designer</SubType>
200200
</None>
201+
<None Include="project.json" />
201202
</ItemGroup>
202203
<ItemGroup>
203204
<ProjectReference Include="..\SharpRepository.AzureBlobRepository\SharpRepository.AzureBlobRepository.csproj">

SharpRepository.Tests/project.json

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"frameworks": { "net452": {} },
3+
"runtimes": {
4+
"win10-x64": {},
5+
"win": {}
6+
}
7+
}

0 commit comments

Comments
 (0)