Closed tpoiesz closed 1 year ago
On https://www.npgsql.org/efcore/misc/collations-and-case-sensitivity.html?tabs=data-annotations it tells us that to use a collation on the database level we need to use HasCollation:
HasCollation
However, I believe HasCollation is used to create a collation, and this code snippet should use UseCollation.
UseCollation
Well-spotted, thanks!
On https://www.npgsql.org/efcore/misc/collations-and-case-sensitivity.html?tabs=data-annotations it tells us that to use a collation on the database level we need to use
HasCollation
:However, I believe
HasCollation
is used to create a collation, and this code snippet should useUseCollation
.