Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

SQL Server Collations In EF Core

How can I specify the collation of a column, a table, or a database by using annotation or Fluent API? I know there are some clean ways for MySql Provider. However, I couldn't find any way for SQL Server other than executing a raw SQL command.

like image 718
Ehsan Mirsaeedi Avatar asked Jan 23 '18 02:01

Ehsan Mirsaeedi


1 Answers

UseCollation() for database and column levels was added to EF Core 5.

like image 190
Mikola Akbal Avatar answered Sep 19 '22 12:09

Mikola Akbal