Create a column with varchar(max) rather than varchar(8000)
How can I create a column in a table and specify it as varchar(max) when using servicestack ormlite? Currently I execute some sql after the table create to get what I want. I've seen the StringLength attribute but was wondering if there's a nicer way of doing it? Something like StringLength(Sql.VarcharMax) Thanks Worked around the issue by doing the following if (!db.TableExists(typeof(Entity).Name)) { db.CreateTableIfNotExists<Entity>(); db.ExecuteSql("ALTER TABLE Entity ALTER COLUMN Column VARCHAR(MAX)"); } Decorate your domain model with System.ComponentModel.DataAnnotations