* Run the Postgres CRMDemo succesfully
* Run my model and the database is created (I have to create the database manually first, but that's ok)
* Run the Enable-Migrations –EnableAutomaticMigrations command in Package Manager Console
* Configure postgres in my configuration.cs file:
Code: Select all
public Configuration()
{
AutomaticMigrationsEnabled = true;
SetSqlGenerator(PgSqlConnectionInfo.InvariantName, new PgSqlEntityMigrationSqlGenerator());
}
Code: Select all
Error 1 Assembly 'Devart.Data.PostgreSql.Entity, Version=7.2.65.6, Culture=neutral, PublicKeyToken=09af7300eec23701' uses 'EntityFramework, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' which has a higher version than referenced assembly 'EntityFramework, Version=4.4.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' ...\bin\Devart.Data.PostgreSql.Entity.dll Roam
* I tried the suggested redirect but to no avail:
Code: Select all
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
<dependentAssembly>
<assemblyIdentity name="EntityFramework" publicKeyToken="b77a5c561934e089" />
<bindingRedirect oldVersion="6.0.0.0" newVersion="4.4.0.0" />
</dependentAssembly>
</assemblyBinding>
Anybody have automatic migrations working ?
Paul W