Skip to content

Conversation

maca88
Copy link
Contributor

@maca88 maca88 commented Sep 1, 2020

Fix for a regression made by #1946.

Fixes #2508

@bahusoid
Copy link
Member

bahusoid commented Sep 1, 2020

What about check inside InjectInterceptor:

if (entity.GetType().BaseType != _entityType)

Shouldn't it be _entityType.IsInstanceOf(entity)?

@maca88
Copy link
Contributor Author

maca88 commented Sep 1, 2020

Shouldn't it be _entityType.IsInstanceOf(entity)?

Good observation, yes it should. Changed.

@bahusoid bahusoid added this to the 5.3.3 milestone Sep 2, 2020
@hazzik hazzik merged commit 1581887 into nhibernate:5.3.x Sep 2, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants