Update NuGet packages.

Most notably YamlDotNet which has performance improvements for large files such as our map files.
This commit is contained in:
Pieter-Jan Briers
2020-11-26 02:18:58 +01:00
parent 79ba3e9e64
commit 2585498699
4 changed files with 9 additions and 10 deletions

View File

@@ -13,11 +13,11 @@
<Import Project="..\RobustToolbox\MSBuild\Robust.DefineConstants.targets" />
<ItemGroup>
<PackageReference Include="Microsoft.EntityFrameworkCore.Design" Version="3.1.0">
<PackageReference Include="Microsoft.EntityFrameworkCore.Design" Version="5.0.0">
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
<PrivateAssets>all</PrivateAssets>
</PackageReference>
<PackageReference Include="Microsoft.EntityFrameworkCore.Sqlite" Version="3.1.0" />
<PackageReference Include="Npgsql.EntityFrameworkCore.PostgreSQL" Version="3.1.4" />
<PackageReference Include="Microsoft.EntityFrameworkCore.Sqlite" Version="5.0.0" />
<PackageReference Include="Npgsql.EntityFrameworkCore.PostgreSQL" Version="5.0.0" />
</ItemGroup>
</Project>

View File

@@ -6,13 +6,12 @@ using Npgsql.EntityFrameworkCore.PostgreSQL.Infrastructure.Internal;
using Npgsql.EntityFrameworkCore.PostgreSQL.Storage.Internal;
using Npgsql.EntityFrameworkCore.PostgreSQL.Storage.Internal.Mapping;
#pragma warning disable EF1001
namespace Content.Server.Database
{
// Taken from https://github.com/npgsql/efcore.pg/issues/1158
// To support inet -> (IPAddress, int) mapping.
#pragma warning disable EF1001
public class CustomNpgsqlTypeMappingSource : NpgsqlTypeMappingSource
#pragma warning restore EF1001
{
public CustomNpgsqlTypeMappingSource(
TypeMappingSourceDependencies dependencies,