Skip to content

Commit

Permalink
#22 mark collection as changed if any item in it is modified
Browse files Browse the repository at this point in the history
  • Loading branch information
SonicGD committed Aug 20, 2020
1 parent c014f75 commit 8381bd3
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ public override PropertyChange[] GetChanges(TEntity item, TEntity oldEntity)
foreach (var collection in entry.Collections)
{
if (collection.CurrentValue.Cast<object>().Any(collectionEntry =>
_dbContext.Entry(collectionEntry).State == EntityState.Modified))
_dbContext.Entry(collectionEntry).State != EntityState.Unchanged))
{
entityChanges.Add(new PropertyChange(collection.Metadata.Name, collection, collection));
}
Expand Down

0 comments on commit 8381bd3

Please sign in to comment.