Skip to content

Commit 4b0c709

Browse files
committed
Added support for EF 7
1 parent 53f150b commit 4b0c709

File tree

29 files changed

+71
-10
lines changed

29 files changed

+71
-10
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
[![Thinktecture.Runtime.Extensions.EntityFrameworkCore](https://img.shields.io/nuget/v/Thinktecture.Runtime.Extensions.EntityFrameworkCore.svg?maxAge=60&label=Thinktecture.Runtime.Extensions.EntityFrameworkCore+(DEPRECATED+in+v5))](https://www.nuget.org/packages/Thinktecture.Runtime.Extensions.EntityFrameworkCore/)
66
[![Thinktecture.Runtime.Extensions.EntityFrameworkCore5](https://img.shields.io/nuget/vpre/Thinktecture.Runtime.Extensions.EntityFrameworkCore5.svg?maxAge=60&label=Thinktecture.Runtime.Extensions.EntityFrameworkCore5)](https://www.nuget.org/packages/Thinktecture.Runtime.Extensions.EntityFrameworkCore5/)
77
[![Thinktecture.Runtime.Extensions.EntityFrameworkCore6](https://img.shields.io/nuget/vpre/Thinktecture.Runtime.Extensions.EntityFrameworkCore6.svg?maxAge=60&label=Thinktecture.Runtime.Extensions.EntityFrameworkCore6)](https://www.nuget.org/packages/Thinktecture.Runtime.Extensions.EntityFrameworkCore6/)
8+
[![Thinktecture.Runtime.Extensions.EntityFrameworkCore7](https://img.shields.io/nuget/vpre/Thinktecture.Runtime.Extensions.EntityFrameworkCore7.svg?maxAge=60&label=Thinktecture.Runtime.Extensions.EntityFrameworkCore7)](https://www.nuget.org/packages/Thinktecture.Runtime.Extensions.EntityFrameworkCore7/)
89
[![Thinktecture.Runtime.Extensions.Json](https://img.shields.io/nuget/vpre/Thinktecture.Runtime.Extensions.Json.svg?maxAge=60&label=Thinktecture.Runtime.Extensions.Json)](https://www.nuget.org/packages/Thinktecture.Runtime.Extensions.Newtonsoft.Json/)
910
[![Thinktecture.Runtime.Extensions.Newtonsoft.Json](https://img.shields.io/nuget/vpre/Thinktecture.Runtime.Extensions.Newtonsoft.Json.svg?maxAge=60&label=Thinktecture.Runtime.Extensions.Newtonsoft.Json)](https://www.nuget.org/packages/Thinktecture.Runtime.Extensions.Newtonsoft.Json/)
1011
[![Thinktecture.Runtime.Extensions.MessagePack](https://img.shields.io/nuget/vpre/Thinktecture.Runtime.Extensions.MessagePack.svg?maxAge=60&label=Thinktecture.Runtime.Extensions.MessagePack)](https://www.nuget.org/packages/Thinktecture.Runtime.Extensions.MessagePack.Json/)

Thinktecture.Runtime.Extensions.sln

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,10 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Thinktecture.Runtime.Extens
7676
EndProject
7777
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Thinktecture.Runtime.Extensions.EntityFrameworkCore5.Tests", "test\Thinktecture.Runtime.Extensions.EntityFrameworkCore5.Tests\Thinktecture.Runtime.Extensions.EntityFrameworkCore5.Tests.csproj", "{70C5A190-2227-473B-B54B-89082A041240}"
7878
EndProject
79+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Thinktecture.Runtime.Extensions.EntityFrameworkCore7", "src\Thinktecture.Runtime.Extensions.EntityFrameworkCore7\Thinktecture.Runtime.Extensions.EntityFrameworkCore7.csproj", "{9A80C790-3BE2-4FA7-ACC1-574577E759EF}"
80+
EndProject
81+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Thinktecture.Runtime.Extensions.EntityFrameworkCore7.Tests", "test\Thinktecture.Runtime.Extensions.EntityFrameworkCore7.Tests\Thinktecture.Runtime.Extensions.EntityFrameworkCore7.Tests.csproj", "{47D09BE4-27F2-4C1A-8797-E8AF64E1ACEA}"
82+
EndProject
7983
Global
8084
GlobalSection(SolutionConfigurationPlatforms) = preSolution
8185
Debug|Any CPU = Debug|Any CPU
@@ -174,6 +178,14 @@ Global
174178
{70C5A190-2227-473B-B54B-89082A041240}.Debug|Any CPU.Build.0 = Debug|Any CPU
175179
{70C5A190-2227-473B-B54B-89082A041240}.Release|Any CPU.ActiveCfg = Release|Any CPU
176180
{70C5A190-2227-473B-B54B-89082A041240}.Release|Any CPU.Build.0 = Release|Any CPU
181+
{9A80C790-3BE2-4FA7-ACC1-574577E759EF}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
182+
{9A80C790-3BE2-4FA7-ACC1-574577E759EF}.Debug|Any CPU.Build.0 = Debug|Any CPU
183+
{9A80C790-3BE2-4FA7-ACC1-574577E759EF}.Release|Any CPU.ActiveCfg = Release|Any CPU
184+
{9A80C790-3BE2-4FA7-ACC1-574577E759EF}.Release|Any CPU.Build.0 = Release|Any CPU
185+
{47D09BE4-27F2-4C1A-8797-E8AF64E1ACEA}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
186+
{47D09BE4-27F2-4C1A-8797-E8AF64E1ACEA}.Debug|Any CPU.Build.0 = Debug|Any CPU
187+
{47D09BE4-27F2-4C1A-8797-E8AF64E1ACEA}.Release|Any CPU.ActiveCfg = Release|Any CPU
188+
{47D09BE4-27F2-4C1A-8797-E8AF64E1ACEA}.Release|Any CPU.Build.0 = Release|Any CPU
177189
EndGlobalSection
178190
GlobalSection(SolutionProperties) = preSolution
179191
HideSolutionNode = FALSE
@@ -202,6 +214,8 @@ Global
202214
{267EAD74-3F4D-41B8-BCF6-9D0F6F99A16F} = {E6F200ED-86D2-4D5C-9D5F-34592908B107}
203215
{5FDAF5A0-C0F8-4AE4-B3B5-B922A53DF07F} = {8F117684-7943-4DCE-8861-F2B854924837}
204216
{70C5A190-2227-473B-B54B-89082A041240} = {AE711F89-41F2-4519-B20D-BA1FAB0EB364}
217+
{9A80C790-3BE2-4FA7-ACC1-574577E759EF} = {8F117684-7943-4DCE-8861-F2B854924837}
218+
{47D09BE4-27F2-4C1A-8797-E8AF64E1ACEA} = {AE711F89-41F2-4519-B20D-BA1FAB0EB364}
205219
EndGlobalSection
206220
GlobalSection(ExtensibilityGlobals) = postSolution
207221
SolutionGuid = {1C34F508-A60B-4C0E-AFA0-0F4CFFB23603}

samples/Thinktecture.Runtime.Extensions.EntityFrameworkCore.Samples/Thinktecture.Runtime.Extensions.EntityFrameworkCore.Samples.csproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,12 @@
44
<OutputType>EXE</OutputType>
55
</PropertyGroup>
66
<ItemGroup>
7-
<ProjectReference Include="..\..\src\Thinktecture.Runtime.Extensions.EntityFrameworkCore6\Thinktecture.Runtime.Extensions.EntityFrameworkCore6.csproj" />
7+
<ProjectReference Include="..\..\src\Thinktecture.Runtime.Extensions.EntityFrameworkCore7\Thinktecture.Runtime.Extensions.EntityFrameworkCore7.csproj" />
88
<ProjectReference Include="..\Thinktecture.Runtime.Extensions.Samples\Thinktecture.Runtime.Extensions.Samples.csproj" />
99
<ProjectReference Include="..\..\src\Thinktecture.Runtime.Extensions.SourceGenerator\Thinktecture.Runtime.Extensions.SourceGenerator.csproj" SetTargetFramework="TargetFramework=netstandard2.0" ReferenceOutputAssembly="false" OutputItemType="Analyzer" />
1010
</ItemGroup>
1111
<ItemGroup>
12-
<PackageReference Include="Microsoft.EntityFrameworkCore.SqlServer" Version="6.0.9" />
12+
<PackageReference Include="Microsoft.EntityFrameworkCore.SqlServer" Version="7.0.2" />
1313
<PackageReference Include="Serilog.Extensions.Logging" Version="3.1.0" />
1414
<PackageReference Include="Serilog.Sinks.Console" Version="4.1.0" />
1515
</ItemGroup>

src/Thinktecture.Runtime.Extensions.EntityFrameworkCore5/Thinktecture.Runtime.Extensions.EntityFrameworkCore5.csproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@
1414
<Link>IsExternalInit.cs</Link>
1515
</Compile>
1616

17-
<Compile Include="..\Thinktecture.Runtime.Extensions.EntityFrameworkCore6\**\*.cs" />
18-
<Compile Remove="..\Thinktecture.Runtime.Extensions.EntityFrameworkCore6\obj\**\*.cs" />
17+
<Compile Include="..\Thinktecture.Runtime.Extensions.EntityFrameworkCore7\**\*.cs" />
18+
<Compile Remove="..\Thinktecture.Runtime.Extensions.EntityFrameworkCore7\obj\**\*.cs" />
1919
</ItemGroup>
2020

2121
<ItemGroup>

src/Thinktecture.Runtime.Extensions.EntityFrameworkCore6/Thinktecture.Runtime.Extensions.EntityFrameworkCore6.csproj

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,13 @@
1313
<Compile Include="..\..\shared\IsExternalInit.cs">
1414
<Link>IsExternalInit.cs</Link>
1515
</Compile>
16+
17+
<Compile Include="..\Thinktecture.Runtime.Extensions.EntityFrameworkCore7\**\*.cs" />
18+
<Compile Remove="..\Thinktecture.Runtime.Extensions.EntityFrameworkCore7\obj\**\*.cs" />
1619
</ItemGroup>
1720

1821
<ItemGroup>
19-
<PackageReference Include="Microsoft.EntityFrameworkCore.Relational" Version="6.0.9" />
22+
<PackageReference Include="Microsoft.EntityFrameworkCore.Relational" Version="6.0.13" />
2023
</ItemGroup>
2124

2225
</Project>

src/Thinktecture.Runtime.Extensions.EntityFrameworkCore6/Thinktecture.Runtime.Extensions.EntityFrameworkCore6.csproj.DotSettings

Lines changed: 0 additions & 2 deletions
This file was deleted.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
<Project Sdk="Microsoft.NET.Sdk">
2+
3+
<PropertyGroup>
4+
<Description>Extends Entity Framework Core to support some components from Thinktecture.Runtime.Extensions.</Description>
5+
<TargetFrameworks>net6.0;net7.0</TargetFrameworks>
6+
<PackageTags>common;EntityFrameworkCore</PackageTags>
7+
<DefineConstants>$(DefineConstants);EFCORE7</DefineConstants>
8+
</PropertyGroup>
9+
10+
<ItemGroup>
11+
<ProjectReference Include="..\Thinktecture.Runtime.Extensions\Thinktecture.Runtime.Extensions.csproj" />
12+
13+
<Compile Include="..\..\shared\IsExternalInit.cs">
14+
<Link>IsExternalInit.cs</Link>
15+
</Compile>
16+
</ItemGroup>
17+
18+
<ItemGroup>
19+
<PackageReference Include="Microsoft.EntityFrameworkCore.Relational" Version="7.0.2" />
20+
</ItemGroup>
21+
22+
</Project>

test/Thinktecture.Runtime.Extensions.EntityFrameworkCore5.Tests/Thinktecture.Runtime.Extensions.EntityFrameworkCore5.Tests.csproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@
1111
</ItemGroup>
1212

1313
<ItemGroup>
14-
<Compile Include="..\Thinktecture.Runtime.Extensions.EntityFrameworkCore6.Tests\**\*.cs" />
15-
<Compile Remove="..\Thinktecture.Runtime.Extensions.EntityFrameworkCore6.Tests\obj\**\*.cs" />
14+
<Compile Include="..\Thinktecture.Runtime.Extensions.EntityFrameworkCore7.Tests\**\*.cs" />
15+
<Compile Remove="..\Thinktecture.Runtime.Extensions.EntityFrameworkCore7.Tests\obj\**\*.cs" />
1616
</ItemGroup>
1717

1818
<ItemGroup>

test/Thinktecture.Runtime.Extensions.EntityFrameworkCore6.Tests/Thinktecture.Runtime.Extensions.EntityFrameworkCore6.Tests.csproj

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,12 @@
1212
</ItemGroup>
1313

1414
<ItemGroup>
15-
<PackageReference Include="Microsoft.EntityFrameworkCore.Sqlite" Version="6.0.9" />
15+
<Compile Include="..\Thinktecture.Runtime.Extensions.EntityFrameworkCore7.Tests\**\*.cs" />
16+
<Compile Remove="..\Thinktecture.Runtime.Extensions.EntityFrameworkCore7.Tests\obj\**\*.cs" />
17+
</ItemGroup>
18+
19+
<ItemGroup>
20+
<PackageReference Include="Microsoft.EntityFrameworkCore.Sqlite" Version="6.0.13" />
1621
</ItemGroup>
1722

1823
</Project>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
<Project Sdk="Microsoft.NET.Sdk">
2+
3+
<PropertyGroup>
4+
<TargetFrameworks>net6.0;net7.0</TargetFrameworks>
5+
<DefineConstants>$(DefineConstants);EFCORE7</DefineConstants>
6+
</PropertyGroup>
7+
8+
<ItemGroup>
9+
<ProjectReference Include="..\..\src\Thinktecture.Runtime.Extensions.EntityFrameworkCore7\Thinktecture.Runtime.Extensions.EntityFrameworkCore7.csproj" />
10+
<ProjectReference Include="..\..\src\Thinktecture.Runtime.Extensions.SourceGenerator\Thinktecture.Runtime.Extensions.SourceGenerator.csproj" SetTargetFramework="TargetFramework=netstandard2.0" ReferenceOutputAssembly="false" OutputItemType="Analyzer" />
11+
<ProjectReference Include="..\Thinktecture.Runtime.Extensions.Tests.Shared\Thinktecture.Runtime.Extensions.Tests.Shared.csproj" />
12+
</ItemGroup>
13+
14+
<ItemGroup>
15+
<PackageReference Include="Microsoft.EntityFrameworkCore.Sqlite" Version="7.0.2" />
16+
</ItemGroup>
17+
18+
</Project>

0 commit comments

Comments
 (0)