Solved

EDMX file maintain it's own model

Posted on 2011-09-10
4
623 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
[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
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:Mamtha1982
Mamtha1982 earned 500 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

Suggested Solutions

ASP.Net to Oracle Connectivity Recently I had to develop an ASP.NET application connecting to an Oracle database.As I am doing it first time ,I had to solve several problems. This article will help to such developers  to develop an ASP.NET client…
Introduction Hi all and welcome to my first article on Experts Exchange. A while ago, someone asked me if i could do some tutorials on object oriented programming. I decided to do them on C#. Now you may ask me, why's that? Well, one of the re…
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial

756 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