Hey, guys!
I’m kind of confused by something and I thought someone here could explain it. I’ve been researching this for a while now and I can find the answer.
I have a SomeDatabase.edmx file in my MVC3 project where I connected to a database and imported all the entities. Later, I created a stored procedure and mapped that function. The only way to access the database class was to do “Add an existing item” on the Models folder and point to that edmx file. It looks weird to me, though, because I can see the file in my project twice now. Once in the root and once under models. If I make a change (like when I added the sproc), rebuilding the project didn’t expose the method. I had to remove and re-add the edmx file to models. That doesn’t sound right, so I think I did something wrong.
What is the proper procedure for using EF and MVC3? Thanks!