Solved

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

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

Enroll in May's Course of the Month

May’s Course of the Month is now available! Experts Exchange’s Premium Members and Team Accounts have access to a complimentary course each month as part of their membership—an extra way to increase training and boost professional development.

Question has a verified solution.

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

This tutorial will show you how to add an attribute to an XML (http://en.wikipedia.org/wiki/XML) stream returned from a Windows Communication Foundation (http://en.wikipedia.org/wiki/Windows_Communication_Foundation) (WCF) Web Service.  Some knowled…
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…
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…

751 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