Celebrate National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

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

Posted on 2012-03-10
3
Medium Priority
?
383 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 
LVL 36

Assisted Solution

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

Accepted Solution

by:
apeter earned 1200 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

On Demand Webinar: Networking for the Cloud Era

Ready to improve network connectivity? Watch this webinar to learn how SD-WANs and a one-click instant connect tool can boost provisions, deployment, and management of your cloud connection.

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…
Video by: ITPro.TV
In this episode Don builds upon the troubleshooting techniques by demonstrating how to properly monitor a vSphere deployment to detect problems before they occur. He begins the show using tools found within the vSphere suite as ends the show demonst…
Have you created a query with information for a calendar? ... and then, abra-cadabra, the calendar is done?! I am going to show you how to make that happen. Visualize your data!  ... really see it To use the code to create a calendar from a q…

730 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