Connection string in Web.config to use to have Code-First
create a db at a server:
<connectionStrings>
<add name="TaskDBContext"
connectionString="data
source=localhost;Integrated Security=SSPI;Initial Catalog=MyProductionDB" providerName="System.Data.SqlClient"/>
</connectionStrings>
No comments:
Post a Comment