Skip to content

Commit

Permalink
Version 8.0.2
Browse files Browse the repository at this point in the history
  • Loading branch information
JonPSmith committed Apr 12, 2024
1 parent f370201 commit 18e5e14
Show file tree
Hide file tree
Showing 7 changed files with 18 additions and 17 deletions.
3 changes: 1 addition & 2 deletions DataLayer/DataLayer.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,7 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Microsoft.EntityFrameworkCore.SqlServer" Version="8.0.0" />
<PackageReference Include="Microsoft.EntityFrameworkCore.InMemory" Version="8.0.0" />
<PackageReference Include="Microsoft.EntityFrameworkCore.SqlServer" Version="8.0.2" />
</ItemGroup>

</Project>
12 changes: 5 additions & 7 deletions EfSchemaCompare/EfSchemaCompare.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -11,24 +11,22 @@
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
<PackageReference Include="Microsoft.EntityFrameworkCore.Relational" Version="8.0.0" />
<PackageReference Include="Microsoft.EntityFrameworkCore.Sqlite" Version="8.0.0" />
<PackageReference Include="Microsoft.EntityFrameworkCore.SqlServer" Version="8.0.0" />
<PackageReference Include="Microsoft.Extensions.Configuration.Json" Version="8.0.0" />
<PackageReference Include="Microsoft.IdentityModel.Tokens" Version="7.5.1" />
<PackageReference Include="Newtonsoft.Json" Version="13.0.3" />
<PackageReference Include="Npgsql.EntityFrameworkCore.PostgreSQL" Version="8.0.0" />
</ItemGroup>

<PropertyGroup>
<PackageId>EfCore.SchemaCompare</PackageId>
<PackageVersion>8.0.1</PackageVersion>
<Version>8.0.1</Version>
<AssemblyVersion>8.0.1</AssemblyVersion>
<FileVersion>8.0.0</FileVersion>
<PackageVersion>8.0.2</PackageVersion>
<Version>8.0.2</Version>
<Authors>Jon P Smith</Authors>
<Description>Useful tool if you are changing the schema of your database's schema outside of EF Core' migrations, say by using SQL change scripts. See readme file on github.</Description>
<PackageRequireLicenseAcceptance>false</PackageRequireLicenseAcceptance>
<PackageReleaseNotes>
- Fixed problems with TablesToIgnoreCommaDelimited with databases not supporting schema - see issue #30
- Removed vulnerable NuGets
- Removed EF Core database NuGets, e.g. Microsoft.EntityFrameworkCore.SqlServer, because its uses provided DbContext
</PackageReleaseNotes>
<Copyright>Copyright (c) 2020 Jon P Smith. Licenced under MIT licence</Copyright>
<PackageTags>Entity Framework Core, Database</PackageTags>
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ If you are changing the schema of your database's schema outside of EF Core' mig

The first number in the version number of this library defines what version of NET framework it works for. e.g.

- EfCore.SchemaCompare version 6 is works with to NET 6.
- EfCore.SchemaCompare version 7 is works with to NET 7 ... an so
- EfCore.SchemaCompare version 8.?.? works with to NET 8.
- EfCore.SchemaCompare version 7.?.? works with to NET 7 ... an so

**WARNING**: Version 8 contains a **BREAKING CHANGE**. You need to add the Microsoft.EntityFrameworkCore.Design NuGet to your application when using this library. This is needed as the EfCore.SchemaCompare library now supports multiple database providers does - see [What database providers does it support](https://github.com/JonPSmith/EfCore.SchemaCompare/blob/master/README.md#what-database-providers-does-it-support).

Expand Down
5 changes: 5 additions & 0 deletions ReleaseNotes.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
# Release notes

## 8.0.2

- Removed vulnerable NuGets
- Removed EF Core database NuGets, e.g. Microsoft.EntityFrameworkCore.SqlServer, because its uses provided DbContext

## 8.0.1

- Fixed problems with TablesToIgnoreCommaDelimited with databases not supporting schema - see issue #30
Expand Down
8 changes: 4 additions & 4 deletions Test/Test.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,12 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="EfCore.TestSupport" Version="6.0.2" />
<PackageReference Include="Microsoft.EntityFrameworkCore.Sqlite" Version="8.0.0" />
<PackageReference Include="Microsoft.EntityFrameworkCore.SqlServer" Version="8.0.0" />
<PackageReference Include="EfCore.TestSupport" Version="8.0.1" />
<PackageReference Include="Microsoft.EntityFrameworkCore.Sqlite" Version="8.0.2" />
<PackageReference Include="Microsoft.EntityFrameworkCore.SqlServer" Version="8.0.2" />
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.7.2" />
<PackageReference Include="Newtonsoft.Json" Version="13.0.3" />
<PackageReference Include="xunit" Version="2.5.1" />
<PackageReference Include="xunit" Version="2.5.3" />
<PackageReference Include="xunit.runner.visualstudio" Version="2.5.1">
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
<PrivateAssets>all</PrivateAssets>
Expand Down
2 changes: 0 additions & 2 deletions Test/UnitTests/TestSchemas.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,8 @@
// Licensed under MIT license. See License.txt in the project root for license information.

using System;
using DataLayer.MyEntityDb;
using DataLayer.SchemaDb;
using EfSchemaCompare;
using Microsoft.EntityFrameworkCore.Infrastructure;
using Microsoft.EntityFrameworkCore;
using TestSupport.EfHelpers;
using TestSupport.Helpers;
Expand Down
1 change: 1 addition & 0 deletions Test/UnitTests/TestTemporal.cs
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ public void CompareTemporal()
var options = this.CreateUniqueClassOptions<MyEntityDbContext>(
builder => builder.ReplaceService<IModelCacheKeyFactory, MyEntityModelCacheKeyFactory>());
using var context = new MyEntityDbContext(options, MyEntityDbContext.Configs.Temporal);
context.Database.EnsureDeleted();
context.Database.EnsureCreated();
foreach (var entityType in context.GetService<IDesignTimeModel>().Model.GetEntityTypes())
context.Database.ExecuteSqlRaw(
Expand Down

0 comments on commit 18e5e14

Please sign in to comment.