add comment to refactor AddOrUpdate algo

don't use explicitly defined EF model IDs, but rather use navs
This commit is contained in:
Collin M. Barrett 2018-02-03 09:29:53 -06:00
parent c08e3efa48
commit 858d0618f7

View file

@ -75,6 +75,7 @@ private static List<TEntityType> GetSeedRows<TEntityType>(string dataPath)
private static string CreateRowValues<TEntityType>(IEnumerable<IProperty> 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("",