HasOne == one-to-oneReferences == many-to-one On Tue, Aug 4, 2009 at 6:11 PM, Mikael Henriksson <[email protected]>wrote:
> Got two questions for you: > 1. What does your two classes look like? > 2. What does your mapping look like? > > 2009/8/4 Fregas <[email protected]> > >> >> Hi Mikael, >> >> I tried that HasOne but then when I loaded up the User it couldn't >> load the CreditCard. It was always null. >> >> I think there ARE times you should think about the table structure. >> Your object model should come first, but you might want your table >> structure in a certain way as I do so that reporting is easier, the db >> structure makes sense to non-object people like DBA's etc. I just >> don't want my tables dictating my object model or vice-versa. >> >> Craig >> >> > > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Fluent NHibernate" 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/fluent-nhibernate?hl=en -~----------~----~----~----~------~----~------~--~---
