You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
SQL Server: introduce UseUtf8() sugar to configure UTF8 properties #27624
#25798 added the ability to do HasColumnType("varchar(max)").IsUnicode(true), which configures a UTF8 property on SQL Server. We could also introduce a UseUtf8() sugar (or UseUTF8() 🔥🔥🔥).
If we add it, you would be able to pass a non-UTF8 collation which is problematic. Or we'd validate the _UTF8 postfix, which would encode the SQL Server convention into EF Core - not ideal.
Note also that UseUtf8() would require the collation to be passed in, but that's only actually necessary if the user is using migrations.
Activity
AndriySvyryd commentedon Mar 14, 2022
Alternatively, we could allow
UseCollationto just work by allowing type mappings to understand collations, related to #7172