From c03ec0f8b7ed69d1b815c9fae11f4003b992be43 Mon Sep 17 00:00:00 2001 From: "Collin M. Barrett" Date: Fri, 28 Sep 2018 10:15:13 -0500 Subject: [PATCH] tidy 11fba23 --- .../Extensions/SeedFilterListsDbContext.cs | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/src/FilterLists.Data/Seed/Extensions/SeedFilterListsDbContext.cs b/src/FilterLists.Data/Seed/Extensions/SeedFilterListsDbContext.cs index 9f6ac33b5..5e3b9e5fa 100644 --- a/src/FilterLists.Data/Seed/Extensions/SeedFilterListsDbContext.cs +++ b/src/FilterLists.Data/Seed/Extensions/SeedFilterListsDbContext.cs @@ -151,15 +151,15 @@ private static string GetUpdateUnchangedColumnHack(IEnumerable proper private static void SetDefaultLicenseId(this DbContext dbContext) { - var lists = dbContext.Set() - .Where(l => l.LicenseId == null) - .ToList() - .Select(c => - { - c.LicenseId = 5; - return c; - }); - dbContext.UpdateRange(lists); + var listsWithoutLicense = dbContext.Set() + .Where(l => l.LicenseId == null) + .ToList() + .Select(l => + { + l.LicenseId = 5; + return l; + }); + dbContext.UpdateRange(listsWithoutLicense); dbContext.SaveChanges(); } }