asp.net mvc - unable to retrieve metadata in MVC -


my application working fine.now added model "logon.cs"

 public class logon {      public int id { get; set; }     public string username { get; set; }     public string password { get; set; }  } public class logoncontext : dbcontext {     public dbset<logon> logons { get; set; } } 

i build app , wanted add controller,it enter image description here

when press add button getting error enter image description here

what mean?what missed?

i found here. may resolve problem:

in root web.config file change name of

<connectionstrings> <add name="yourconnectionstring" ...other code goes here...  </connectionstrings> 

to:

 <connectionstrings> <add name="defaultconnection" ...other code goes here... </connectionstrings> 

also, have rebuild after change connection string name.


Comments

Popular posts from this blog

c++ - How to add Crypto++ library to Qt project -

jQuery Mobile app not scrolling in Firefox -

How to use vim as editor in Matlab GUI -