From 858d0618f7c8aa44055800ab7f21ba5e8ef4aa2f Mon Sep 17 00:00:00 2001 From: "Collin M. Barrett" Date: Sat, 3 Feb 2018 09:29:53 -0600 Subject: [PATCH] add comment to refactor AddOrUpdate algo don't use explicitly defined EF model IDs, but rather use navs --- src/FilterLists.Data/Seed/Extensions/SeedFilterListsDbContext.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/FilterLists.Data/Seed/Extensions/SeedFilterListsDbContext.cs b/src/FilterLists.Data/Seed/Extensions/SeedFilterListsDbContext.cs index 01ab21ea4..4aa933749 100644 --- a/src/FilterLists.Data/Seed/Extensions/SeedFilterListsDbContext.cs +++ b/src/FilterLists.Data/Seed/Extensions/SeedFilterListsDbContext.cs @@ -75,6 +75,7 @@ private static List GetSeedRows(string dataPath) private static string CreateRowValues(IEnumerable properties, TEntityType row) { + //TODO: use EF nav entity rather than foreign key so foreign key doesn't need to be explicitly in model (ie, License rather than LicenseId) return (from property in properties let value = row.GetType().GetProperty(property.Name).GetValue(row) select FormatDataForMySql(property, value)).Aggregate("",