EF Code First alter default Initial Catalog

Asked

Viewed 33 times

1

I’m trying to modify the database Padrão of Entity Framework however the Initial Catalog is not being modified.

Events - Visual Studio 15

Web.config

  • You could share with us the section connectionStrings of your web.config?

  • <connectionStrings> <add name="Vitecstore" connectionString="Data Source=. SQLEXPRESS;Initial Catalog=Vitecstore;Integrated Security=True" providerName="System.Data.Sqlclient" /> </connectionStrings>

1 answer

0

Test with the following Connection String:

<add name="VitecStore" connectionString="Data Source=.\SQLEXPRESS;Initial Catalog=VitecStore;database=VitecStore;Integrated Security=True" providerName="System.Data.SqlClient" /> 

Browser other questions tagged

You are not signed in. Login or sign up in order to post.