How to do In many to many relationship, where no child class.
How to generate a table by convention linking the two?

*Tables to be generate:*
table Person
  Id
  Name

table Company
  Id
  Name

table PersonCompany
  PersonId
  CompanyId

*Current class*
class Person
  string Name

class Company
  string Name
  IList<Person> Persons

As you can see, there are no IList<Company> child property on class Person.
How to generate a second table (PersonCompany) by convention in this case?

Riderman de Sousa Barbosa <http://about.me/ridermansb>

Web Developer | MCPD Certify

Skype.: 4042-6002 | Cel.: (31) 8681-1986
bindsolution.com

Microsoft Parner Network

-- 
You received this message because you are subscribed to the Google Groups 
"Fluent NHibernate" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to fluent-nhibernate+unsubscr...@googlegroups.com.
To post to this group, send email to fluent-nhibernate@googlegroups.com.
Visit this group at http://groups.google.com/group/fluent-nhibernate?hl=en-US.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to