When entities have data that's not accessed by property, reflection optimizers aren't used. Cannot see why? This little patch makes use of reflection optimizer no matter the access setting.
I'm not sure this won't crash something, but all the nhib tests passes after the patch and my own app seems to work just fine.
I might be wrong here... But I'm almost certain that nhib 1.2 had the same problem which give hints that this "bug"/limitation is there for a reason?
When entities have data that's not accessed by property, reflection optimizers aren't used. Cannot see why? This little patch makes use of reflection optimizer no matter the access setting.
I'm not sure this won't crash something, but all the nhib tests passes after the patch and my own app seems to work just fine.
I might be wrong here... But I'm almost certain that nhib 1.2 had the same problem which give hints that this "bug"/limitation is there for a reason?
Anyhow - here's the patch.