Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

EDMX file maintain it's own model

Posted on 2011-09-10
4
Medium Priority
?
660 Views
Last Modified: 2012-08-13
Well,

I am using MVC 3 and using that I tried to create my Model from existing databse. I was expecting that Once I create model adn start my CRUD operations from the Controller then It would map itslef to the database and then I would basically see the reflection of the changes back in the databse.

Well, unfortunately it is not hppening. Instead, what is happening is that EDMX is maintaining it's own Model. I am attaching screenshot for your reference.

whatever data that I insert is not going to my original database now. I think it is going to this EDMX model. Can somebody please throw light on this?

0
Comment
Question by:TheCommunicator
  • 3
4 Comments
 

Accepted Solution

by:
TheCommunicator earned 0 total points
ID: 36517050
I am sorry I forgot to attach the file.
EDMX-model-view.png
0
 
LVL 12

Assisted Solution

by:Praveen Kumar
Praveen Kumar earned 2000 total points
ID: 36518709
Can paste your CRUD code as well? Are you calling SaveChanges() method?
0
 

Author Comment

by:TheCommunicator
ID: 36525087
Well, I am sorry for all the confusion, it turned out that the whole problem started because I did not name my Connection string same as the DB Context file. Had I done that, none of these things could had happened. Anyyways, the pronlem is resolved.

Thank you so much for your help:).
0
 

Author Closing Comment

by:TheCommunicator
ID: 36553496
Expert's commnet was certainly a right question but as the solution was a collective thread. I think it should help futher readers if I select all the comments in the thread as the answer rahter than concentrating on only cone comment.
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

User art_snob (http://www.experts-exchange.com/M_6114203.html) encountered strange behavior of Android Web browser on his Mobile Web site. It took a while to find the true cause. It happens so, that the Android Web browser (at least up to OS ver. 2.…
Real-time is more about the business, not the technology. In day-to-day life, to make real-time decisions like buying or investing, business needs the latest information(e.g. Gold Rate/Stock Rate). Unlike traditional days, you need not wait for a fe…
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…
this video summaries big data hadoop online training demo (http://onlineitguru.com/big-data-hadoop-online-training-placement.html) , and covers basics in big data hadoop .
Suggested Courses

916 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