DEV Community

Discussion on: The Curious Case of nvarchar and varchar in Entity Framework

Collapse
borjasanes profile image
Borja García

We faced the same problem using Dapper. The solution was to use DbString as parameter.

parameters: new DbString { Value = fieldId, IsAnsi = true, Length = 50}