property-ref

http://nhforge.org/doc/nh/en/index.html#mapping-declaration-manytoone

/Oskar


2010/6/3 Dana Efros <[email protected]>:
> Hi, All
>
> I have to entities:
> public class A : EntityWithTypedId<long>
> {
>  Guid UniqueIdentifier;
>  IList<B> Children;
> }
>
> public class B:  EntityWithTypedId<long>
> {
>    A Parent;
> .....
> }
>
> I want to make the reference using the Guid column not the primary key
> Id (so I will have in the B table UniqueIdentifier not A_id). It this
> possible?
> Thanks
>
> --
> 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.
>
>

-- 
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.

Reply via email to