Skip to content

Release 1.1.0

Compare
Choose a tag to compare
@roji roji released this 20 Nov 16:00
· 1642 commits to main since this release

Version 1.1.0 of the Npgsql Entity Framework Core provider has been released and is available on nuget. This version works with the recently released 1.1.0 of Entity Framework Core, and contains some new Npgsql features as well. Note that if you're using the command-line tools, you'll have to modify your tools section as described in the EF Core release post:

"tools": {
  "Microsoft.EntityFrameworkCore.Tools.DotNet": "1.0.0-preview4"
},

New Features

Aside from general EF Core features, version 1.1.0 of the Npgsql provider contains the following:

  • Hilo key generation (#5). This can be a much more efficient way to generate autoincrement key values.
  • PostgreSQL array mapping (#15). This allows you to have plain CLR arrays on your entities, and have those arrays mapped to native PostgreSQL array columns.
  • Optimistic concurrency with PostgreSQL's xmin column (#19). Simply specify .UseXminAsConcurrencyToken() on an entity to start using this, see the EF docs for more details.
  • Cleanup of how serial (autoincrement) and generated GUID/UUID columns are managed.

Here's the full list of issues.

Note that this release includes some breaking changes: please see the migration notes. Please report any problems to https://github.com/npgsql/Npgsql.EntityFrameworkCore.PostgreSQL.