Skip to content

darionato/PostgreSqlMigrationSqlGenerator

Repository files navigation

PostgreSqlMigrationSqlGenerator

Class to handle Entity Framework 5 migrations with PostgreSQL

Requires

  1. Npgsql (you can find it in NuGet)
  2. A database already creaded with a new schema called "dbo"
  3. [MaxLength(n)] attribute is required on each string properties of models

Installation

  1. Change your connection string into the file web.conf like this:
<connectionStrings>
    <add name="DataContext" 
        connectionString="Server=127.0.0.1;Port=5432;Database=db;UserId=postgres;Password=password;CommandTimeout=20;Preload Reader = true;" 
        providerName="Npgsql" />
</connectionStrings>

Installation with NuGet

PM> Install-Package EntityFramework.v5.PostgreSql

What's next

The migrator will be added into the next release of Npgsql (>=2.2.0) so I think that this project will stop here :( (but happy for the full support of Npgsql :)!)

About

Class to handle Entity Framework migrations with PostgreSQL

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages