I was following the quickstart of building silverlight application using WCF RIA Services. But then I got stuck at the handling relationship
section. The example mentioned there is perfectly understood when I work with reversed-engineered model...but what if the scenario of the Product-Category classes were just like the one here
If I tried the code in the handling relationship section: [Association("Category", "CategoryId", "CategoryId")]
Then, compiling the silverlight application will give the following error:
Error 12 Association named 'Category' defined on entity type 'Product' is invalid: ThisKey property named 'CategoryID' cannot be found.
This of course makes sense since there's no CategoryId property defined in the Product class in the forward mapping model just like the case of the reverse mapping scenario. How do I go around this problem?