|
I need the ability to navigate from a table to a view. for example I have a table called Event that hold all the calls coming into a center. I have a view called EventFirstStep which holds only the first step of the event which will tell me the issue of the call. In my Event class I want to do the following:
public string EventIssue
{
get{
return this.EventFirstStep.Detail;
}
}
In my EDMX I created an association between the EventFirstStep view and the Event Table. In my Event class I created the above code and it compiles fine.
When I run the program I get the following error.
Error 1 #error: 'DevForce requires that foreign key columns be included in the model. This must be set when the EDMX is first created. If you are upgrading from DevForce 2009, you cannot use the old model and should recreate it using the Entity Framework for .NET 4.0. The following associations were not set up with foreign key associations enabled: EventFirstStepEvent'
What do I need to do in addition to creating the association to make this work?
|