Say I have three tables Products, Languages and ProductTranslations that look like the following:
(1) ProductId
(1) StandardName
(1) Price
(2) LanguageId
(2) LanguageName
and
(3) ProductTranslationId
(3) ProductId
(3) LanguageId
(3) LocalName
(3) LocalDescription
In my object model, I need a single object (single class map) that contains the following
(3) ProductTranslationId
(2) Language
(3) LocalName
(3) LocalDescription
(1) Price
This object is only used for display, so read-only (immutable) is fine.
ProductTranslationId uniquely identifies a row.
If necessary, this object can include the LanguageID and ProductID values as well. the important feature is that this needs to include the Language and Price values from the ONE side of this one to many relationship.
I can see how to do this in 3 separate classes using Many-to-One, but how can I do this with one class, where ProductTranslationId is the <id> value?
Is there an alternative that does not require creating a view in the database?