Page 1 of 1

EF Core PostgreSQL Migration Sql Generator modification

Posted: Mon 29 Jun 2020 09:26
by BlackDice
Good day!
Please tell me if it is possible to modify the migration sql generator for EF Core 3 in dotConnect for PostgreSql (v.7.17.1612.0)?
I need to add a condition to a unique index, and at the moment I see no other way to do this, except to use raw sql on MigrationBuilder.
All classes that could help to modify the migration are either internal or do not provide an interface for overriding.
I've tried using HasFilter extension on IndexBuilder, but it seems, that PgMigrationSqlBuilder ignores this parameter.

Re: EF Core PostgreSQL Migration Sql Generator modification

Posted: Mon 13 Jul 2020 09:18
by Shalex
Thank you for your report. We will investigate the issue with HasFilter extension on IndexBuilder and notify you about the result.

Re: EF Core PostgreSQL Migration Sql Generator modification

Posted: Thu 30 Sep 2021 12:44
by Shalex
The HasFilter extension on IndexBuilder in EF Core Migrations is supported in EF Core 3 and EF Core 5.

Refer to viewtopic.php?f=3&t=48312.