SharpTools / sharpdata

An awesome ORM for querying and modifying databases
MIT License
11 stars 6 forks source link

Data type for SQL Server for DbType.StringFixedLength #11

Closed beppler closed 5 years ago

beppler commented 6 years ago

On DbTypes x SqlServer is documented that the types generated for DbType.AnsiStringFixedLength are the following:

Based on SQL Server Data Type Mappings the type used for String should be:

The mediumtext datatype does not exist on SQL Server text datatype is deprecated and I think that it is not applicable to FixedLength.

So if precision is specified and is not between 1 and 4000 I think that an exception should be raised.

beppler commented 6 years ago

I've created a project fork at https://github.com/mpsinfo/sharpdata that contains this update.

beppler commented 5 years ago

Resolved by #19.