Solved

EDMX file maintain it's own model

Posted on 2011-09-10
4
579 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
Comment Utility
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
Comment Utility
Can paste your CRUD code as well? Are you calling SaveChanges() method?
0
 

Author Comment

by:TheCommunicator
Comment Utility
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
Comment Utility
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

Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

Join & Write a Comment

IntroductionWhile developing web applications, a single page might contain many regions and each region might contain many number of controls with the capability to perform  postback. Many times you might need to perform some action on an ASP.NET po…
It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
Internet Business Fax to Email Made Easy - With eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…

762 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

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now