From e3abf396eb4456b06edd14d56c6a13b2e4129ea7 Mon Sep 17 00:00:00 2001 From: "Collin M. Barrett" Date: Mon, 20 Aug 2018 14:46:57 -0500 Subject: [PATCH] revert to join() again for now per exceptions caused by https://github.com/PomeloFoundation/Pomelo.EntityFrameworkCore.MySql/issues/667 ref #357 --- src/FilterLists.Services/Snapshot/SnapshotBatch.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/FilterLists.Services/Snapshot/SnapshotBatch.cs b/src/FilterLists.Services/Snapshot/SnapshotBatch.cs index 2244a3181..b31db309b 100644 --- a/src/FilterLists.Services/Snapshot/SnapshotBatch.cs +++ b/src/FilterLists.Services/Snapshot/SnapshotBatch.cs @@ -32,7 +32,7 @@ public void Save() } private IQueryable GetExistingRules() => - dbContext.Rules.Where(r => lines.Contains(r.Raw)); + dbContext.Rules.Join(lines, rule => rule.Raw, line => line, (rule, line) => rule); private List CreateNewRules(IQueryable existingRules) => lines.Except(existingRules.Select(r => r.Raw)).Select(r => new Rule {Raw = r}).ToList();