I have opened a bug in jira (with attached unit test that show
behavior-in-action), but I'm not sure if this is a bug or an intended
behavior.
The situation is described under:
I use Ms Sql Server 2008 r2 database with collation Latin1_General_CI_AS
(all strings are treated as case insensitive). I have two classes with a
root-child hierarchy and the root class fails to load all childs. In
RootTable I have an instance with id ="root" that is related to two
child in ChildTable.
The problem arise because the root object fk is in one case "root"
(match exactly) and in another "Root" (not match the exact case).
I suppose that this issue is related Cache management due to the fact
that C# is a case sensitive language.
For clarity, when I profile NH, I see that the query is created
correctly and her return 2 records. Later, NH probably when retrieve
they from cache, discards one of them.
In the RootClass, I have overrided Equals and GetHasCode to implements a
non case sensitive behavior. But, as show in attached testcase in
NH-3833, this don't works.
It's a bug or it's my mistake?
Thanks in advance.
ps: I'm using NH 4.0.4 (latest stable release)
--
You received this message because you are subscribed to the Google Groups
"nhusers" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/nhusers.
For more options, visit https://groups.google.com/d/optout.