Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions RELEASE_NOTES.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
- MongoDB
- MSSQL
- PostgreSQL
* Breaking: `EventFlow.Sql` from .NET 8 and above uses dbup version 6 to migrate databases.

*Sorry for the delay.*

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,12 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Microsoft.EntityFrameworkCore.InMemory" Version="8.0.11" />
<PackageReference Include="Microsoft.EntityFrameworkCore.Sqlite" Version="8.0.11" />
<PackageReference Include="Microsoft.EntityFrameworkCore.SqlServer" Version="8.0.11" />
<PackageReference Include="Microsoft.EntityFrameworkCore.InMemory" Version="9.0.1" />
<PackageReference Include="Microsoft.EntityFrameworkCore.Sqlite" Version="9.0.1" />
<PackageReference Include="Microsoft.EntityFrameworkCore.SqlServer" Version="9.0.1" />
Comment on lines +9 to +11
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These versions originate from .NET 9

<PackageReference Include="Microsoft.NET.Test.Sdk" Version="16.6.1" />
<PackageReference Include="Npgsql" Version="8.0.6" />
<PackageReference Include="Npgsql.EntityFrameworkCore.PostgreSQL" Version="8.0.11" />
<PackageReference Include="Npgsql" Version="9.0.2" />
<PackageReference Include="Npgsql.EntityFrameworkCore.PostgreSQL" Version="9.0.1" />
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This version originate from .NET 9

<PackageReference Include="NUnit" Version="3.13.2" />
<PackageReference Include="NUnit3TestAdapter" Version="3.17.0" />
</ItemGroup>
Expand Down
22 changes: 20 additions & 2 deletions Source/EventFlow.MsSql/EventFlow.MsSql.csproj
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFrameworks>netstandard2.1;netcoreapp3.1;net6.0</TargetFrameworks>
<TargetFrameworks>netstandard2.1;netcoreapp3.1;net6.0;net8.0</TargetFrameworks>
<Title>EventFlow.MsSql</Title>
<Authors>Rasmus Mikkelsen</Authors>
<Company>Rasmus Mikkelsen</Company>
Expand All @@ -12,9 +12,27 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="1.0.0" PrivateAssets="All" />
</ItemGroup>

<ItemGroup Condition="'$(TargetFramework)' == 'net8.0'">
<PackageReference Include="dbup-sqlserver" Version="[6.0.0,)" />
<PackageReference Include="Microsoft.Data.SqlClient" Version="5.2.2" />
</ItemGroup>

<ItemGroup Condition="'$(TargetFramework)' == 'net6.0'">
<PackageReference Include="dbup-sqlserver" Version="5.0.40" />
<PackageReference Include="Microsoft.Data.SqlClient" Version="5.2.0" />
</ItemGroup>

<ItemGroup Condition="'$(TargetFramework)' == 'netcoreapp3.1'">
<PackageReference Include="dbup-sqlserver" Version="5.0.40" />
<PackageReference Include="Microsoft.Data.SqlClient" Version="5.2.0" />
</ItemGroup>

<ItemGroup Condition="'$(TargetFramework)' == 'netstandard2.1'">
<PackageReference Include="dbup-sqlserver" Version="5.0.40" />
<PackageReference Include="Microsoft.Data.SqlClient" Version="5.2.0" />
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="1.0.0" PrivateAssets="All" />
</ItemGroup>

<ItemGroup>
Expand Down
22 changes: 20 additions & 2 deletions Source/EventFlow.PostgreSql/EventFlow.PostgreSql.csproj
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFrameworks>netstandard2.1;netcoreapp3.1;net6.0</TargetFrameworks>
<TargetFrameworks>netstandard2.1;netcoreapp3.1;net6.0;net8.0</TargetFrameworks>
<Title>EventFlow.PostgreSql</Title>
<Authors>Rida Messaoudene</Authors>
<Company>Rasmus Mikkelsen</Company>
Expand All @@ -25,8 +25,26 @@
</ItemGroup>

<ItemGroup>
<PackageReference Include="dbup-postgresql" Version="4.1.0" />
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="1.0.0" PrivateAssets="All" />
</ItemGroup>

<ItemGroup Condition="'$(TargetFramework)' == 'net8.0'">
<PackageReference Include="dbup-postgresql" Version="[6.0.3,)" />
<PackageReference Include="Npgsql" Version="[9.0.2,)" />
</ItemGroup>

<ItemGroup Condition="'$(TargetFramework)' == 'net6.0'">
<PackageReference Include="dbup-postgresql" Version="5.0.40" />
<PackageReference Include="Npgsql" Version="4.1.14" />
</ItemGroup>

<ItemGroup Condition="'$(TargetFramework)' == 'netcoreapp3.1'">
<PackageReference Include="dbup-postgresql" Version="5.0.40" />
<PackageReference Include="Npgsql" Version="4.1.14" />
</ItemGroup>

<ItemGroup Condition="'$(TargetFramework)' == 'netstandard2.1'">
<PackageReference Include="dbup-postgresql" Version="5.0.40" />
<PackageReference Include="Npgsql" Version="4.1.14" />
</ItemGroup>

Expand Down
17 changes: 16 additions & 1 deletion Source/EventFlow.SQLite/EventFlow.SQLite.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,26 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="dbup-sqlserver" Version="5.0.40" />
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="1.0.0" PrivateAssets="All" />
<PackageReference Include="System.Data.SQLite.Core" Version="1.0.119" />
</ItemGroup>

<ItemGroup Condition="'$(TargetFramework)' == 'net8.0'">
<PackageReference Include="dbup-sqlserver" Version="[6.0.0,)" />
</ItemGroup>

<ItemGroup Condition="'$(TargetFramework)' == 'net6.0'">
<PackageReference Include="dbup-sqlserver" Version="5.0.40" />
</ItemGroup>

<ItemGroup Condition="'$(TargetFramework)' == 'netcoreapp3.1'">
<PackageReference Include="dbup-sqlserver" Version="5.0.40" />
</ItemGroup>

<ItemGroup Condition="'$(TargetFramework)' == 'netstandard2.1'">
<PackageReference Include="dbup-sqlserver" Version="5.0.40" />
</ItemGroup>

<ItemGroup>
<ProjectReference Include="..\EventFlow.Sql\EventFlow.Sql.csproj" />
</ItemGroup>
Expand Down
19 changes: 17 additions & 2 deletions Source/EventFlow.Sql/EventFlow.Sql.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<Title>EventFlow.Sql</Title>
<Authors>Rasmus Mikkelsen</Authors>
<Company>Rasmus Mikkelsen</Company>
<Copyright>Copyright (c) Rasmus Mikkelsen 2015 - 2021</Copyright>
<Copyright>Copyright (c) Rasmus Mikkelsen 2015 - 2025</Copyright>
<Description>Generic SQL support for EventFlow</Description>
<PackageTags>CQRS ES event sourcing SQL</PackageTags>
<PackageReleaseNotes>UPDATED BY BUILD</PackageReleaseNotes>
Expand All @@ -13,11 +13,26 @@

<ItemGroup>
<PackageReference Include="Dapper" Version="2.1.35" />
<PackageReference Include="dbup-core" Version="5.0.37" />
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="1.0.0" PrivateAssets="All" />
<PackageReference Include="System.ComponentModel.Annotations" Version="4.7.0" />
</ItemGroup>

<ItemGroup Condition="'$(TargetFramework)' == 'net8.0'">
<PackageReference Include="dbup-core" Version="[6.0.0,)" />
</ItemGroup>

<ItemGroup Condition="'$(TargetFramework)' == 'net6.0'">
<PackageReference Include="dbup-core" Version="5.0.37" />
</ItemGroup>

<ItemGroup Condition="'$(TargetFramework)' == 'netcoreapp3.1'">
<PackageReference Include="dbup-core" Version="5.0.37" />
</ItemGroup>

<ItemGroup Condition="'$(TargetFramework)' == 'netstandard2.1'">
<PackageReference Include="dbup-core" Version="5.0.37" />
</ItemGroup>

<ItemGroup>
<ProjectReference Include="..\EventFlow\EventFlow.csproj" />
</ItemGroup>
Expand Down
33 changes: 32 additions & 1 deletion Source/EventFlow.Sql/Integrations/DbUpUpgradeLog.cs
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
// IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
// CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

using System;
using DbUp.Engine.Output;
using Microsoft.Extensions.Logging;

Expand All @@ -35,6 +36,36 @@ public DbUpUpgradeLog(
_logger = logger;
}

public void LogTrace(string format, params object[] args)
{
_logger.LogError(format, args);
}

public void LogDebug(string format, params object[] args)
{
_logger.LogError(format, args);
}

public void LogInformation(string format, params object[] args)
{
_logger.LogError(format, args);
}

public void LogWarning(string format, params object[] args)
{
_logger.LogError(format, args);
}

public void LogError(string format, params object[] args)
{
_logger.LogError(format, args);
}

public void LogError(Exception ex, string format, params object[] args)
{
_logger.LogError(ex, format, args);
}

public void WriteInformation(string format, params object[] args)
{
_logger.LogInformation(format, args);
Expand All @@ -50,4 +81,4 @@ public void WriteError(string format, params object[] args)
_logger.LogError(format, args);
}
}
}
}
Loading