After interceptor is not working correctly

Create issue
Issue #3 resolved
Former user created an issue

If you try After interceptor and check the State of the object will alway be Unchanges for example in following code in ChangeInterceptor<>:

    protected override void OnAfter(DbEntityEntry item)
        T tItem = (T)item.Entity;
        switch (item.State)
            case EntityState.Added:
                this.OnAfterInsert(item, tItem);
            case EntityState.Deleted:
                this.OnAfterDelete(item, tItem);
            case EntityState.Modified:
                this.OnAfterUpdate(item, tItem);

Comments (2)

  1. Chris McKenzie repo owner

    I have a fix for this issue which I should be able release this weekend. It will involve a change to the signature of OnAfter(). It should be easy to integrate though.

  2. Log in to comment