Skip to content

Commit

Permalink
Add Sqlite NodaTime support
Browse files Browse the repository at this point in the history
Update some dependencies

Fix Analyzer warning
  • Loading branch information
ErikEJ committed Dec 1, 2023
1 parent ac65557 commit 22007f8
Show file tree
Hide file tree
Showing 8 changed files with 17 additions and 18 deletions.
2 changes: 1 addition & 1 deletion src/GUI/Directory.Build.Props
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="SonarAnalyzer.CSharp" Version="9.12.0.78982">
<PackageReference Include="SonarAnalyzer.CSharp" Version="9.14.0.81108">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets>
</PackageReference>
Expand Down
2 changes: 1 addition & 1 deletion src/GUI/NUnitTestCore/NUnitTestCore.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@
<ItemGroup>
<PackageReference Include="nunit" Version="3.13.3" />
<PackageReference Include="NUnit3TestAdapter" Version="4.4.2" />
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.6.0" />
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.8.0" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\ErikEJ.EntityFrameworkCore.DgmlBuilder\ErikEJ.EntityFrameworkCore.DgmlBuilder.csproj" />
Expand Down
3 changes: 1 addition & 2 deletions src/GUI/RevEng.Core.60/ServiceProviderBuilder.cs
Original file line number Diff line number Diff line change
Expand Up @@ -232,13 +232,12 @@ public static IServiceCollection AddEfpt(this IServiceCollection serviceCollecti
var sqliteProvider = new SqliteDesignTimeServices();
sqliteProvider.ConfigureDesignTimeServices(serviceCollection);

#if !CORE80
if (options.UseNodaTime)
{
var nodaTime = new SqliteNodaTimeDesignTimeServices();
nodaTime.ConfigureDesignTimeServices(serviceCollection);
}
#endif

break;

default:
Expand Down
2 changes: 1 addition & 1 deletion src/GUI/RevEng.Core.80/RevEng.Core.80.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
<ItemGroup>
<PackageReference Include="Bricelam.EntityFrameworkCore.Pluralizer" Version="1.0.0" />
<PackageReference Include="EntityFrameworkCore.Scaffolding.Handlebars" Version="8.0.0-beta1" />
<!--<PackageReference Include="EntityFrameworkCore.Sqlite.NodaTime" Version="7.0.0" />-->
<PackageReference Include="EntityFrameworkCore.Sqlite.NodaTime" Version="8.0.0" />
<!--<PackageReference Include="FirebirdSql.EntityFrameworkCore.Firebird" Version="9.2.0-alpha1" />-->
<PackageReference Include="Microsoft.Data.SqlClient" Version="5.1.2" />
<PackageReference Include="Microsoft.EntityFrameworkCore.Design" Version="8.0.0" />
Expand Down
6 changes: 3 additions & 3 deletions src/GUI/UnitTests/ViewModels/ObjectTreeViewModelTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -330,14 +330,14 @@ public void GetSelectedObjects_WithObjects_PartialSelection()
}

// Act
var result = vm.GetSelectedObjects().ToArray();
var result = vm.GetSelectedObjects().ToList();

// Assert
Assert.IsNotNull(result);
Assert.AreEqual(6, result.Length);
Assert.AreEqual(6, result.Count);
foreach (var item in vm.Types.SelectMany(c => c.Schemas).OrderBy(c => c.Name))
{
Assert.IsTrue(result.Any(c => c.Name == item.Objects[0].ModelDisplayName));
Assert.IsTrue(result.Exists(c => c.Name == item.Objects[0].ModelDisplayName));
}
}

Expand Down
6 changes: 3 additions & 3 deletions src/GUI/efcpt.6/efcpt.6.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -54,9 +54,9 @@
<PackageReference Include="Ben.Demystifier" Version="0.4.1" />
<PackageReference Include="CommandLineParser" Version="2.9.1" />
<PackageReference Include="Microsoft.Extensions.Hosting" Version="6.0.1" />
<PackageReference Include="NuGet.Protocol" Version="6.7.0" />
<PackageReference Include="Spectre.Console" Version="0.47.0" />
<PackageReference Include="System.IO.Abstractions" Version="19.2.69" />
<PackageReference Include="NuGet.Protocol" Version="6.8.0" />
<PackageReference Include="Spectre.Console" Version="0.48.0" />
<PackageReference Include="System.IO.Abstractions" Version="19.2.87" />
</ItemGroup>

<ItemGroup>
Expand Down
6 changes: 3 additions & 3 deletions src/GUI/efcpt.7/efcpt.7.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,9 @@
<PackageReference Include="Ben.Demystifier" Version="0.4.1" />
<PackageReference Include="CommandLineParser" Version="2.9.1" />
<PackageReference Include="Microsoft.Extensions.Hosting" Version="7.0.1" />
<PackageReference Include="NuGet.Protocol" Version="6.7.0" />
<PackageReference Include="Spectre.Console" Version="0.47.0" />
<PackageReference Include="System.IO.Abstractions" Version="19.2.69" />
<PackageReference Include="NuGet.Protocol" Version="6.8.0" />
<PackageReference Include="Spectre.Console" Version="0.48.0" />
<PackageReference Include="System.IO.Abstractions" Version="19.2.87" />
</ItemGroup>

<ItemGroup>
Expand Down
8 changes: 4 additions & 4 deletions src/GUI/efcpt.8/efcpt.8.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -53,10 +53,10 @@
<ItemGroup>
<PackageReference Include="Ben.Demystifier" Version="0.4.1" />
<PackageReference Include="CommandLineParser" Version="2.9.1" />
<PackageReference Include="Microsoft.Extensions.Hosting" Version="6.0.1" />
<PackageReference Include="NuGet.Protocol" Version="6.7.0" />
<PackageReference Include="Spectre.Console" Version="0.47.0" />
<PackageReference Include="System.IO.Abstractions" Version="19.2.69" />
<PackageReference Include="Microsoft.Extensions.Hosting" Version="8.0.0" />
<PackageReference Include="NuGet.Protocol" Version="6.8.0" />
<PackageReference Include="Spectre.Console" Version="0.48.0" />
<PackageReference Include="System.IO.Abstractions" Version="19.2.87" />
</ItemGroup>

<ItemGroup>
Expand Down

0 comments on commit 22007f8

Please sign in to comment.