I'm trying to pass data source=(local);initial catalog=xxx;integrated security=false;user id=sa;password=yyy;
to my EFDbContext. What I've done is
public class EFDbContext : DbContext
{
public EFDbContext() : base(@"data source=(local);initial catalog=xxx;integrated security=false;userid=sa;password=yyy;MultipleActiveResultSets=True;App=EntityFramework")
{
}
}
But it raises an error saying
“Keyword not supported:‘initial catalog’”
when I run the program. Is it a problem to the format of my connection string?