How Do I Use Large Text Fields in ORM Classes?

How Do I Use Large Text Fields in ORM Classes?

Comments

  • Were making a custom log class where we want to be able to put a large amount of text. Were running into an issue where the text is getting cut off at a certain length though. We tried setting the character limit higher, but it is still getting cut off. How do we get around this?

  • Hey Jon,

    The limit for varchar() and nvarchar() is 4000 characters. To do anything larger, you need to use the text column type:

    [ORMField(typeof(TextFieldConverter))]

    Let me know if you have any other questions.

Sign In or Register to comment.