refactor: replace morelinq with superlinq

pull/201/head
Robert Dailey 2 years ago
parent 5b0dfe0fa6
commit 715d777f9e

@ -15,7 +15,6 @@
<PackageVersion Include="Flurl.Http" Version="3.2.4" />
<PackageVersion Include="GitVersion.MsBuild" Version="5.12.0" />
<PackageVersion Include="JetBrains.Annotations" Version="2022.3.1" />
<PackageVersion Include="morelinq" Version="3.4.2" />
<PackageVersion Include="MudBlazor" Version="6.4.1" />
<PackageVersion Include="Newtonsoft.Json" Version="13.0.3" />
<PackageVersion Include="Newtonsoft.Json.Schema" Version="3.0.15" />
@ -28,6 +27,7 @@
<PackageVersion Include="Spectre.Console" Version="0.47.0" />
<PackageVersion Include="Spectre.Console.Analyzer" Version="0.47.0" />
<PackageVersion Include="Spectre.Console.Cli" Version="0.47.0" />
<PackageVersion Include="SuperLinq" Version="5.1.0" />
<PackageVersion Include="System.Data.HashFunction.FNV" Version="2.0.0" />
<PackageVersion Include="System.Private.Uri" Version="4.3.2" />
<PackageVersion Include="System.Reactive" Version="6.0.0" />

@ -1 +1 @@
global using MoreLinq;
global using SuperLinq;

@ -68,7 +68,7 @@ public class QualityProfileTransactionPhase
QualityProfileDto profileDto)
{
var scoreMap = profileData.CfScores
.FullJoin(profileDto.FormatItems,
.FullOuterJoin(profileDto.FormatItems, JoinType.Hash,
x => x.FormatId,
x => x.Format,
// Exists in config, but not in service (these are unusual and should be errors)

@ -1 +1 @@
global using MoreLinq;
global using SuperLinq;

@ -30,7 +30,7 @@ public sealed class CustomFormatDataEqualityComparer : IEqualityComparer<CustomF
}
return first
.FullJoin(second, x => x.Name, _ => false, _ => false, SpecificationEqual)
.FullOuterJoin(second, JoinType.Hash, x => x.Name, x => x.Name, _ => false, _ => false, SpecificationEqual)
.All(x => x);
}
@ -53,7 +53,7 @@ public sealed class CustomFormatDataEqualityComparer : IEqualityComparer<CustomF
}
return first
.FullJoin(second, x => x.Name, _ => false, _ => false, FieldEqual)
.FullOuterJoin(second, JoinType.Hash, x => x.Name, x => x.Name, _ => false, _ => false, FieldEqual)
.All(x => x);
}

@ -9,9 +9,9 @@
<PackageReference Include="Flurl" />
<PackageReference Include="Flurl.Http" />
<PackageReference Include="JetBrains.Annotations" />
<PackageReference Include="morelinq" />
<PackageReference Include="Newtonsoft.Json.Schema" />
<PackageReference Include="Serilog" />
<PackageReference Include="SuperLinq" />
<PackageReference Include="System.Data.HashFunction.FNV" />
<PackageReference Include="System.Private.Uri" />
<PackageReference Include="System.Reactive" />

Loading…
Cancel
Save