Improve company productivity with a Business Account.Sign Up

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 675
  • Last Modified:

EDMX file maintain it's own model

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
TheCommunicator
Asked:
TheCommunicator
  • 3
2 Solutions
 
TheCommunicatorAuthor Commented:
I am sorry I forgot to attach the file.
EDMX-model-view.png
0
 
Praveen KumarArchitectCommented:
Can paste your CRUD code as well? Are you calling SaveChanges() method?
0
 
TheCommunicatorAuthor Commented:
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
 
TheCommunicatorAuthor Commented:
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
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

The 14th Annual Expert Award Winners

The results are in! Meet the top members of our 2017 Expert Awards. Congratulations to all who qualified!

  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now