On [DbTypes x SqlServer](https://github.com/SharpTools/sharpdata/wiki/DbTypes-x-SqlServer) is documented that the types generated for DbType.String are the following: * nvarchar(255) if precision is not specified * nvarchar(n) if precision is between 1 and 8000 * text if precision greater than 8000 Based on [SQL Server Data Type Mappings](https://docs.microsoft.com/en-us/dotnet/framework/data/adonet/sql-server-data-type-mappings) the type used for String should be: * nvarchar(255) if precision is not specified (to remain compatible with previous behavior) * nvarchar(n) for precision between 1 and 4000 * nvarchar(max) for precision bigger than 4000 The mediumtext datatype does not exist on SQL Server and ntext datatype is [deprecated](https://docs.microsoft.com/en-us/sql/t-sql/data-types/ntext-text-and-image-transact-sql?view=sql-server-2017), but should be used if SQL Server is version 2005 or older.
Activity
beppler commentedon Aug 3, 2018
I've created a project fork at https://github.com/mpsinfo/sharpdata that contains this update.
beppler commentedon Apr 22, 2019
Resolved by #19.