This is a simple question. I must be missing something basic and fundamental here, but it's got me confused.
Say (to use the 'First Project' example) I've got a 'Store' class and an 'Employee' class, and I want to set up a one-to-many relationship so that one Store can have many Employees. 1. The example at 'http://wiki.fluentnhibernate.org/show/ GettingStartedFirstProject' shows how to set this up with ClassMap, but my understanding is that ClassMap is the "old" way of doing things, right? I should be using Conventions for this now? 2. I understand how Conventions can be used to describe how classes should be mapped to the database - like, if I want my ID field to always be named "FldId", or my foreign keys to always begin with "FK_". But where can I find a list of the *default* conventions, if I'm just starting out a project and am free to name the database tables and fields any way I'd like, and I'd like to name them in such a way that my Fluent NHibernate project can find and use them without my having to set up Conventions? 3. So how would I use these Conventions to actually set up the one-to- many or many-to-many relationships in my database? Are there default Conventions set up so that, without writing any new Conventions of my own, the relationships will be established and pivot tables used automatically? (And if so, then how do I need to name things for this to happen?) Or do I need to set up Conventions for every relationship (and if so, how do I do this, because all the Convention stuff I've seen so far seems to deal only with naming)? Any examples you could provide for the right way I should be doing this would be greatly appreciated! --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Fluent NHibernate" group. To post to this group, send email to fluent-nhibernate@googlegroups.com To unsubscribe from this group, send email to fluent-nhibernate+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/fluent-nhibernate?hl=en -~----------~----~----~----~------~----~------~--~---