Skip to content

Commit

Permalink
fix issue with InsertEntity (hashcode is not unique if we recreate ev…
Browse files Browse the repository at this point in the history
…ery time)
  • Loading branch information
JonathanMagnan committed Oct 5, 2021
1 parent 97c3ffb commit d9cda59
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 10 deletions.
4 changes: 2 additions & 2 deletions Main/Source/Effort.EF6.Net40/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,5 @@
[assembly: ComVisible(false)]
[assembly: Guid("896d3ca3-a5bd-4aac-b384-8488ad59ee87")]

[assembly: AssemblyVersion("2.2.14")]
[assembly: AssemblyFileVersion("2.2.14")]
[assembly: AssemblyVersion("2.2.15")]
[assembly: AssemblyFileVersion("2.2.15")]
4 changes: 2 additions & 2 deletions Main/Source/Effort.EF6.Net45/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@
[assembly: ComVisible(false)]
[assembly: Guid("810b876c-4c73-4f0b-9fff-019fe4f30182")]

[assembly: AssemblyVersion("2.2.14")]
[assembly: AssemblyFileVersion("2.2.14")]
[assembly: AssemblyVersion("2.2.15")]
[assembly: AssemblyFileVersion("2.2.15")]

//[assembly: InternalsVisibleTo("Effort.Test")]
//[assembly: InternalsVisibleTo("Effort.Extra.EF6.Tests")]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<TargetFramework>netstandard2.1</TargetFramework>
<SignAssembly>true</SignAssembly>
<AssemblyOriginatorKeyFile>KeyPair.snk</AssemblyOriginatorKeyFile>
<Version>2.2.14</Version>
<Version>2.2.15</Version>
<AssemblyName>Effort</AssemblyName>
<RootNamespace>Effort</RootNamespace>
</PropertyGroup>
Expand Down
4 changes: 2 additions & 2 deletions Main/Source/Effort.Net40/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@
[assembly: ComVisible(false)]
[assembly: Guid("779ecf7b-0379-419d-bc4d-286a8ec08f6d")]

[assembly: AssemblyVersion("2.2.14")]
[assembly: AssemblyFileVersion("2.2.14")]
[assembly: AssemblyVersion("2.2.15")]
[assembly: AssemblyFileVersion("2.2.15")]

//[assembly: InternalsVisibleTo("Effort.Test")]
[assembly: InternalsVisibleTo("Effort.Test, PublicKey=002400000480000094000000060200000024000052534131000400000100010007D1FA57C4AED9F0A32E84AA0FAEFD0DE9E8FD6AEC8F87FB03766C834C99921EB23BE79AD9D5DCC1DD9AD236132102900B723CF980957FC4E177108FC607774F29E8320E92EA05ECE4E821C0A5EFE8F1645C4C0C93C1AB99285D622CAA652C1DFAD63D745D6F2DE5F17E5EAF0FC4963D261C8A12436518206DC093344D5AD293")]
4 changes: 2 additions & 2 deletions Main/Source/Effort.Net45/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@
[assembly: ComVisible(false)]
[assembly: Guid("aa6b4a10-01c1-4cc0-8009-4a7c6aa28585")]

[assembly: AssemblyVersion("2.2.14")]
[assembly: AssemblyFileVersion("2.2.14")]
[assembly: AssemblyVersion("2.2.15")]
[assembly: AssemblyFileVersion("2.2.15")]

//[assembly: InternalsVisibleTo("Effort.Extra.Tests")]
[assembly: InternalsVisibleTo("Effort.Extra.Tests, PublicKey=002400000480000094000000060200000024000052534131000400000100010007D1FA57C4AED9F0A32E84AA0FAEFD0DE9E8FD6AEC8F87FB03766C834C99921EB23BE79AD9D5DCC1DD9AD236132102900B723CF980957FC4E177108FC607774F29E8320E92EA05ECE4E821C0A5EFE8F1645C4C0C93C1AB99285D622CAA652C1DFAD63D745D6F2DE5F17E5EAF0FC4963D261C8A12436518206DC093344D5AD293")]
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ public static object Create(ITable table, IList<MemberBinding> memberBindings)


// CREATE key by combining the table and all member name
var key = table.GetHashCode() + ";zzz;" + string.Join(";", memberBindings.Select(x => x.Member.Name));
var key = table.GetHashCode() + ";zzz;" + table.EntityType.FullName + ";zzz;" + string.Join(";", memberBindings.Select(x => x.Member.Name));

// CHECK if already compiled, otherwise we compile it
if (!DictCreateAndInsertEntityDelegate.TryGetValue(key, out var factory))
Expand Down

0 comments on commit d9cda59

Please sign in to comment.