You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a custom mapping type that transform a string (N or S) from database to a bool on the entity side.
This custom mapping type works fine in NH 5.2.x. After the migration to NH 5.3.x the custom mapping type works well except in one scenario: when the query check the inverse value of one variable, as show under:
var no = false;
Assert.IsTrue(_database.GetSession().Query<Entity1>().Where(x => x.IsChiusa == !no).Any());
I attach here a unit test to show the issue in action.
fredericDelaporte
changed the title
IEnhancedUserType from string to bool fails in some circumstance in NH 5.3.x (regression)
IEnhancedUserType from string to bool fails in some circumstances
Mar 20, 2021
I have a custom mapping type that transform a string (N or S) from database to a bool on the entity side.
This custom mapping type works fine in NH 5.2.x. After the migration to NH 5.3.x the custom mapping type works well except in one scenario: when the query check the inverse value of one variable, as show under:
I attach here a unit test to show the issue in action.
Thanks,
Pasquale.
issue_in_action.zip
The text was updated successfully, but these errors were encountered: