Skip to content

Commit

Permalink
Ignore RelationshipEntry
Browse files Browse the repository at this point in the history
  • Loading branch information
Volodymyr Dombrovskyi committed Mar 23, 2014
1 parent d631260 commit eb634a0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/System.Data.Entity.Hooks/DbContextHooker.cs
Original file line number Diff line number Diff line change
Expand Up @@ -68,8 +68,8 @@ private void SavingChanges(object sender, EventArgs e)
{
var entries = _objectContext.ObjectStateManager
.GetObjectStateEntries(EntityState.Unchanged | EntityState.Modified | EntityState.Deleted | EntityState.Added)
.Where(entry => entry.Entity != null)
.Select(entry => new ObjectStateEntryAdapter(entry));

foreach (var entry in entries)
{
foreach (var preSaveHook in _saveHooks)
Expand Down

0 comments on commit eb634a0

Please sign in to comment.