configuring Entityframework C# and SQL Server

Asked

Viewed 171 times

0

"the element 'entityFramework' has invalid Child element 'providers'. List of possible elementes expected: 'contexts'."

  • 1

    Welcome to Sopt... only with the description of exception cannot help you, add the code of the entity configuration file...

  • Edit your question, making clear the current configuration so that the problem can be pointed out.

1 answer

1

in the project where your web config is set as the main one should contain this in your string Connections providerName="System.Data.Sqlclient"

example:

<connectionStrings>
 <add name="nomeconexao" connectionString="" providerName="System.Data.SqlClient" />
</connectionStrings>

if you doubt post your code

Browser other questions tagged

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