A Dictionary as part of the Id?
Don't.
Diego
On Mon, Dec 27, 2010 at 15:52, cyrus <[email protected]> wrote:
> >unless you are using a composite id.
>
> Ahhaa! It's always these details! Many thanks Diego. I guess that
> means I will have to use a collection (i.e. an IDictionary) to
> identify uniqueness of items according to my criteria.
>
>
> On Dec 27, 5:28 am, Diego Mijelshon <[email protected]> wrote:
> > Your assumption is just not correct: NHibernate couldn't care less if
> you've
> > overriden Equals, unless you are using a composite id.
> > Moreover, even if that were the case, having two objects with the same Id
> in
> > the same session will throw.
> >
> > I could say more but you get the idea.
> >
> > Diego
>
> --
> You received this message because you are subscribed to the Google Groups
> "nhusers" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected]<nhusers%[email protected]>
> .
> For more options, visit this group at
> http://groups.google.com/group/nhusers?hl=en.
>
>
--
You received this message because you are subscribed to the Google Groups
"nhusers" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/nhusers?hl=en.