It's there another way about how can I made the database connection with entity framework instead the use of connection string in the web.config. Maybe passing the parameters to the modelBuilder or to the DBContext????
相关问题
- Sorting 3 numbers without branching [closed]
- Graphics.DrawImage() - Throws out of memory except
- Why am I getting UnauthorizedAccessException on th
- 求获取指定qq 资料的方法
- How to know full paths to DLL's from .csproj f
I do believe that you can pass connection string in the parameter to the DataContext. What have you tried? Why do this? check out this link
See the third post in this thread:
http://social.msdn.microsoft.com/Forums/is/adodotnetdataservices/thread/2eb0e7a8-10c5-4c6c-80b8-23cb39161345
this may be useful: in the source of MyEntities:
EDIT according to this Q&A my EF 4 (4.1.10331.0)
and here how it look like my web.config for EF:
I hope this helps better