Solved

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

Posted on 2012-03-10
3
382 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 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

On Demand Webinar: Networking for the Cloud Era

Did you know SD-WANs can improve network connectivity? Check out this webinar to learn how an SD-WAN simplified, one-click tool can help you migrate and manage data in the cloud.

Question has a verified solution.

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

In previous Articles, we have discussed how we can upload a file using .asmx web service and isolated storage space. Here, in continuation to the topic, I am going to discuss how we can use WCF for the same purpose. Steps: 1.Create the silverli…
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…
If you’ve ever visited a web page and noticed a cool font that you really liked the look of, but couldn’t figure out which font it was so that you could use it for your own work, then this video is for you! In this Micro Tutorial, you'll learn yo…
Add bar graphs to Access queries using Unicode block characters. Graphs appear on every record in the color you want. Give life to numbers. Hopes this gives you ideas on visualizing your data in new ways ~ Create a calculated field in a query: …
Suggested Courses

631 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