Found the answer... One of the two Primary keys should obviously be of
type 'PrimaryKeyType.ForeignKey'.

>
>     [ActiveRecord]
>     public class TestUser : ActiveRecordBase<TestUser>
>     {
>         [PrimaryKey(PrimaryKeyType.Foreign)] // !! NOT GuidComb!
>         public Guid Id { get; set; }
>
>         [OneToOne(Cascade = CascadeEnum.All, Fetch = FetchEnum.Join)]
>         public TestUserProfile Profile { get; set; }
>
>     }
>

--

You received this message because you are subscribed to the Google Groups 
"Castle Project Users" 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/castle-project-users?hl=.


Reply via email to