Hi, I have a problem with MVC to make the controller even after reading the prompts. adding a constructor to DbContext, removing a broken one, changing providerName = "System.Data.SqlClient", etc.
my model class is as follows:
public class RecruiterModel { public string CompanyName { get; set; } public string Website { get; set; } public string CompanySize { get; set; } public string LinkedInCompanyURL { get; set; } public string LinkedInID { get; set; } public string Specialities { get; set; } public string Category { get; set; } public string Location { get; set; } public int ContactPhone { get; set; } public string ContactEmail { get; set; } } public class RecruiterDBContext : DbContext { public DbSet<RecruiterModel> Recruiters { get; set; } }
and my web.configString connection looks like this:
<add name="ApplicationServices" connectionString="data source=.\SQLEXPRESS;Integrated Security=SSPI;AttachDBFilename=|DataDirectory|aspnetdb.mdf;User Instance=true" providerName="System.Data.SqlClient" /> <add name="RecruiterDBContext" connectionString="Data Source=(LocalDB)\v11.0;AttachDbFilename=|DataDirectory|\Recruiters.mdf;Integrated Security=True" providerName="System.Data.SqlClient" />
any advice?
user2606847 Jul 22 '13 at 12:54 on 2013-07-22 12:54
source share