EF4.1 Code First Error
Posted: Mon 25 Apr 2011 13:52
Hi There,
I am following this guide: http://www.asp.net/entity-framework/tut ... pplication
So that is MVC3 with EF Code First and I am trying to use MySQL instead of SQLSERVER.
So far I have downloaded the Devart dotConnect and also tried the MySQL Connector. In my web.config I have added the following under
Next, I found out that the following also has to be added to the web.config. I don't know why though.
I have a simple POCO model for a post called Post. I am under the impression that when this compiles, and the lazy loading kicks in, the entity framework should create a table for me that's called 'post' (or 'posts').
However, when this runs, I get the following error: "Table 'project.posts' doesn't exist" indicating that the EF does NOT create this for me.
When I use the dotConnect instead, I get the another error: "Unknown database 'dbo'".
Does anyone have some insight as to what's going on? I did find this post [ http://social.msdn.microsoft.com/Forums ... 5d522aac4b ] but not sure whether it provides much insight ?
Why doesn't DevArt work ?
I am following this guide: http://www.asp.net/entity-framework/tut ... pplication
So that is MVC3 with EF Code First and I am trying to use MySQL instead of SQLSERVER.
So far I have downloaded the Devart dotConnect and also tried the MySQL Connector. In my web.config I have added the following under
Code: Select all
Code: Select all
However, when this runs, I get the following error: "Table 'project.posts' doesn't exist" indicating that the EF does NOT create this for me.
When I use the dotConnect instead, I get the another error: "Unknown database 'dbo'".
Does anyone have some insight as to what's going on? I did find this post [ http://social.msdn.microsoft.com/Forums ... 5d522aac4b ] but not sure whether it provides much insight ?
Why doesn't DevArt work ?