Solucionado (ver solução)
Solucionado
(ver solução)
1
resposta

Dúvida no Ex. 1 da Aula 6 - Trabalhando Melhor com as views

Estou tendo um problema de conexão com o banco. Criei todo o código e recebi a msg de rro:

An exception of type 'System.Data.Entity.Core.ProviderIncompatibleException' occurred in EntityFramework.dll but was not handled in user code

Additional information: An error occurred accessing the database. This usually means that the connection to the database failed. Check that the connection string is correct and that the appropriate DbContext constructor is being used to specify it or find it in the application's config file. See http://go.microsoft.com/fwlink/?LinkId=386386 for information on DbContext and connections. See the inner exception for details of the failure.

Então eu tentei de tudo e nada deu certo. Fiquei pensando se realmente era um erro do meu código e resolvi voltar os arquivos para os mesmos do ultimo exercício que eu havia feito e que funcionavam, mas quando eu fui testar, mesmo o antigo que funcionava antes, estava dando o mesmo erro ( o citado a cima). O que eu faço?

1 resposta
solução!

Consegui fazer funcionar aqui. Depois de mexer muito em várias configurações do SQL Server eu consegui fazer funcionar o arquivo mdf que vem no projeto.