ORM Basics: Adjusting SQL Data Types

Last Updated: 12/09/2015 Introduced in Verision: 2.0
Using overrides to the ORMField attribute, you can set what database type is used to store a field. For more on writing ORM types see ORM Basics
 
Here is an example showing how to override for a long text field. This field will become an nvarchar(max) field in SQL.

 And here is an example showing how to limit the text length of a field. This field will become an nvarchar(15) field in SQL.

Additional Resources