views:

8

answers:

0

We process specialty ads for companies. These companies have a number of stores that have unique ads but share some ads. These ads that are shared across stores may appear on a different pages for each store. So I have a database like this:

Specialty SpecialtyAd: SpecialtyId, AdId, AdNumber(Think of this as a page number.) Ad (Really a page in the specialty.)

This table structure looks just like a regular ManyToMany with Fluent NHibernate but I need that AdNumber, and it really belongs on the ad object in my domain layer. Is there a way to pull down this AdNumber so it can be a part of my Ad class?

I have seen some examples of this where the linker table should be an object in the domain layer but I do not believe this to be the case her.