Jump to content

Recommended Posts

Posted

Boa tarde,

eu estou a tentar ligar uma aplicação web a um servidor remoto sql server 2012 mas dá-me sempre o erro: "ProviderIncompatibleException: The provider did not return a ProviderManifestToken string.".

em web.config, a minha connectionStrings é a seguinte:

 <connectionStrings>
   <add name="exemploDbContext"
	 connectionString="Server=<link do servidor>;Database=<name da base de dados>;UserID=sa;Password=<password>"	   
	 providerName="System.Data.SqlClient" />
 </connectionStrings>

Alguém me pode dar uma ajuda??

Cumps.

Posted

Boas, já consegui resolver o problema, mas agora dá me uma inner exception.

eu tenho o seguinte código:

   public class FestivalDbContext : DbContext
   {
    public DbSet<Festival> Festivais { get; set; }
   }

como faço para ele mapear a tabela "Festivais" na base de dados e não "Festivals" como ele está a fazer...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site you accept our Terms of Use and Privacy Policy. We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.