SyntaxFix
Write A Post
Hire A Developer
Questions
In your DbContext, create a default constructor for your DbContext and inherit the base like this:
public myDbContext() : base("MyConnectionString") // connectionstring name define in your web.config { }