praeclarum / sqlite-net

Simple, powerful, cross-platform SQLite client and ORM for .NET
MIT License
4.1k stars 1.42k forks source link

Create TEXT column with ORM #191

Open louy opened 11 years ago

louy commented 11 years ago

Hello,

Is it possible to create sql TEXT column with ORM?

VARCHARs are not enough and I didn't find anything in the documentation.

dbeattie71 commented 11 years ago

public static string SqlType is the method that handles this. Currently it only returns varchar, I modify sqlite.cs to return text for strings.

else if(clrType == typeof(String)) { int len = p.MaxStringLength; //return "varchar(" + len + ")"; return "text"; }

louy commented 11 years ago

I made a better solution... will update it once my pending pull requests are approved.

jgsacris commented 8 years ago

Was this solved at some point?