c# - Getting the correct connection string for EF in local db -


pretty new , following instruction on asp.net mvc book, here how local db looks like:

enter image description here

and here how connection string looks like:

 <add name="efdbcontext" providername="system.data.sqlclient" connectionstring="data source=(localdb)\v11.0;initial catalog=sportsstore;integrated security=true" /> 

have done wrong?

when run app crashes message:

an exception of type 'system.io.fileloadexception' occurred in ninject.dll not handled in user code  additional information: not load file or assembly 'entityframework, version=6.0.0.0, culture=neutral, publickeytoken=b77a5c561934e089' or 1 of dependencies. located assembly's manifest definition not match assembly reference. 

and message in browser:

could not load file or assembly 'entityframework, version=6.0.0.0, culture=neutral, publickeytoken=b77a5c561934e089' or 1 of dependencies. located assembly's manifest definition not match assembly reference.  exception details: system.io.fileloadexception: not load file or assembly 'entityframework, version=6.0.0.0, culture=neutral, publickeytoken=b77a5c561934e089' or 1 of dependencies. located assembly's manifest definition not match assembly reference. (exception hresult: 0x80131040)  source error:     line 11:     public class efproductrepository:iproductsrepository line 12:     { line 13:         private efdbcontext context = new efdbcontext(); line 14:  line 15:         public iqueryable<product> products 

try , update entity framework package nuget, error has nothing database.

if recall ef6.0 had bugs , same day 6.0.1 released.


Comments

Popular posts from this blog

google api - Incomplete response from Gmail API threads.list -

Installing Android SQLite Asset Helper -

Qt Creator - Searching files with Locator including folder -