I am trying to create a connection string for my EF Code-First ASP.NET application like this :
EntityConnectionStringBuilder csb = new EntityConnectionStringBuilder();
csb.ProviderConnectionString = "Server=.;Database=MyAappUser Id=user;Password=passwd;Integrated Security=False";
csb.Provider = "System.Data.SqlClient";
And I get this exception :
Keyword not supported: 'provider'.
Can you tell me what I am missing? Thanks.
No comments:
Post a Comment