That property is the bidiretional... if you use the class Person (many-to-one) instead the field PersonId you have exactly the same persistent representation.
On Tue, Apr 27, 2010 at 11:19 AM, Yauhen <[email protected]> wrote: > practically I don't it this property. Only if insert/update could not > written without setting it I will need. > If could - no problem I could remove. But as I have described in next > post I am heavily vased on sql-queries and don't want to do any things > to maintain parent object. > > On Apr 27, 5:11 pm, Fabio Maulo <[email protected]> wrote: > > On Tue, Apr 27, 2010 at 11:03 AM, Yauhen <[email protected]> wrote: > > > > > public class PersonAddress > > > { > > > public virtual int Id {get; set;} > > > public virtual int PersonId {get; set;} > > > ... > > > } > > > > > I don't want to have person object property in address. It creates > > > cyclic references and don't necessary for my application. > > > > And what is that property "PersonId" ? do you want or you don't want ? > > > > -- > > Fabio Maulo > > > > -- > > 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 athttp:// > 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]<nhusers%[email protected]> > . > For more options, visit this group at > http://groups.google.com/group/nhusers?hl=en. > > -- Fabio Maulo -- 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.
