mirror of
https://github.com/collinbarrett/FilterLists.git
synced 2026-03-11 09:04:27 +00:00
add comment to refactor AddOrUpdate algo
don't use explicitly defined EF model IDs, but rather use navs
This commit is contained in:
parent
c08e3efa48
commit
858d0618f7
1 changed files with 1 additions and 0 deletions
|
|
@ -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("",
|
||||
|
|
|
|||
Loading…
Reference in a new issue