Entity Framework issue
To practice on what I learn, I create another Database website using the ADO.NET Entity Framework. I do exactly the same as in Chapter 14 (create the edmx file and delete the 2 files with ".tt" extension) with the below code:
using (MyEntities myEnt = new MyEntities())
When I click the word "MyEntities" and press Ctrl+., the select list don't have the option "using MyModel", only got the "Generate class for 'MyEntities'". When I manually type the "using MyModel;" at the top, it gave an error: "The type or namespace name 'MyModel' could not be found (are you missing a using directive or assembly reference?)".
Any idea what might be the cause and how to solve this.
Thanks and have a nice day.
Last edited by weixing; April 26th, 2013 at 01:28 PM.
Reason: add more details