I am working with an existing database which I was able to import into a Domain Model (rling) file. As this is new, greenfield development I am continually adding and revising the tables and their relationships (which by the way, has been made very easy with this ORM!) and am frequently updating the model from the database ... anyway ... I have a situation where I have created a many to many relationship in the database. It involves a PRODUCTS table, a PACKAGES table, and a join table which allows me to define multiple products in a single package and a product in multiple packages. I was expecting to see a navigation property, in the domain model, on the PRODUCT model, which would allow me to list the packages that the product was participating in ... PRODUCT.PACKAGES, and vice versa ... PACKAGE.PRODUCTS. Instead each model has a navigation property which references the join table instead. PRODUCT.PRODUCT_PACKAGES_JOIN and PACKAGE.PRODUCT_PACKAGES_JOIN (pseudo-code). Is there a way to add navigational properties to each end of the relationship so I do not have to go through the join table?
I found this article ... How to: Manage Many-to-Many Associations... but the example it gave appeared to be some configuration code, which I have not yet had to involve myself with, so I do not know where or how that would work into the project.
Any help would be greatly appreciated! Thanks!