ntext in ServiceStack.OrmLite
问题 how can i have nText datatype in ServiceStack.OrmLite Code first ? public class Email { [AutoIncrement] public long ID { get; set; } public DateTime Date { get; set; } public string From { get; set; } public string Subject { get; set; } nText => public string Body { get; set; } } if i use string datatype , ormlite generate nVarchar(8000) in database i need more than 8000 character for data 回答1: You need to convert your Body type to byte[] from string for ServiceStack.OrmLite to use the