Solved

Added Table to .EDMX but can't get Context to Reflect Changes

Posted on 2012-03-10
3
380 Views
Last Modified: 2012-03-14
Hi,
I had an existing .edmx file/diagram.  I added a new table to diagram and ran the 'Update Model from Database' option by right clicking on diagram.  When I reference my Domain Context variable the method m_DomainContext.GetYYYQuery() (where YYY is the name of my newly added table) does not exist.  How can I get the context to update? I am working with Visual Studio 2010.
Thanks in advance for the help!!!
Terry
0
Comment
Question by:wahlster
3 Comments
 
LVL 36

Assisted Solution

by:Miguel Oz
Miguel Oz earned 200 total points
ID: 37707845
0
 
LVL 25

Accepted Solution

by:
apeter earned 300 total points
ID: 37707861
After adding hope you rebuild the project which contains the edmx file. This issue is there in .net 3.5 but happens very less in .net 4.0.  Worst case recreate the edmx file.
0
 

Author Comment

by:wahlster
ID: 37709397
I did add the table with the wizard.  I did read the section as proposed by mas_oz2003 but no luck.  I then added a little hope per apeter and recreated teh edmx file.  This seemed to be part of the solution but in my project I also have a DomainService class that also had to be recreated.  This domain class appears to work with tables in the edmx class.  Once I recreated both of these things work but this seems a bit extreem.  I am getting up to speed with RIA so I may be missing the obvious.  Any additional input/insight would be greatly appreciated.
Thanks,
Terry
0

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

While working on Silverlight and WCF application, I faced one issue where fault exception occurred at WCF operation contract is not getting propagated to Silverlight client. So after searching net I came to know that it was behavior by default for s…
Here I am going to explain creating proxies at runtime for WCF Service. So basically we use to generate proxies using Add Service Reference and then giving the Url of the WCF service then generate proxy files at client side. Ok, what if something ge…
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…
Exchange organizations may use the Journaling Agent of the Transport Service to archive messages going through Exchange. However, if the Transport Service is integrated with some email content management application (such as an antispam), the admini…

740 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question