SharpTools / sharpdata

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

Fix db type translations for sql server dialect #3

Open williamthiago opened 6 years ago

williamthiago commented 6 years ago

Hey @andrecarlucci,

Reviewing the sql server dialect, I found a mistake on lines #L188 and #L192. The max value of precision for NCHAR and NVARCHAR is 4000.

I also configured the other types according to:

Related, are you still using sharpmigrations?

andrecarlucci commented 6 years ago

Hi @williamthiago ,

I changed these mappings so many times that I would like to do it slowly for now on. Here is what we have today:

https://github.com/SharpTools/sharpdata/wiki/DbTypes-x-SqlServer

Please, create "one issue per change" of type justifying it and we could collaboratively talk about it. Thanks!

And yes, we use it in all our products :)

beppler commented 5 years ago

Hi, pull request #19 resolved this issue.