mirror of
https://github.com/collinbarrett/FilterLists.git
synced 2026-03-11 09:04:27 +00:00
revert to join() again for now
per exceptions caused by https://github.com/PomeloFoundation/Pomelo.EntityFrameworkCore.MySql/issues/667 ref #357
This commit is contained in:
parent
0b976041c8
commit
e3abf396eb
1 changed files with 1 additions and 1 deletions
|
|
@ -32,7 +32,7 @@ public void Save()
|
|||
}
|
||||
|
||||
private IQueryable<Rule> GetExistingRules() =>
|
||||
dbContext.Rules.Where(r => lines.Contains(r.Raw));
|
||||
dbContext.Rules.Join(lines, rule => rule.Raw, line => line, (rule, line) => rule);
|
||||
|
||||
private List<Rule> CreateNewRules(IQueryable<Rule> existingRules) =>
|
||||
lines.Except(existingRules.Select(r => r.Raw)).Select(r => new Rule {Raw = r}).ToList();
|
||||
|
|
|
|||
Loading…
Reference in a new issue