After interceptor is not working correctly

Issue #3 resolved
Anonymous 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);
                break;
            case EntityState.Deleted:
                this.OnAfterDelete(item, tItem);
                break;
            case EntityState.Modified:
                this.OnAfterUpdate(item, tItem);
                break;
        }
    }

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