KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
I need a valid SQL Server 2008 connection string for Entity Framework 4.1 code-first project. I would use it now with MVC 3. For now it's still very simple, only 1 project, 3 simple model class... I could only find everything else, like Sql Express, CE connections on the web... Finding it by name in web.config ("ApplicationServices") is OK, because when I tried to use I got specific errors for that. The best I could get is: Unable to load the specified metadata resource. I tried to give it like metadata=res://MyWebProject/MyWebProject.csdl| ... also but no success. So it doesn't create the database for me - even doesn't hit the OnModelCreating(DbModelBuilder modelBuilder) method. If I try to use an 'old fashioned' connection like the ones I found for SQL Server Express, it misses the metadata. Thanks for your help in advance.
Tags (comma-separated)
Save Edits
Cancel