BlockingType attribute in Optimizely
optimizely
When you have a string property that should hold less than 255 characters, add:
[BackingType(typeof(PropertyString))]This ensures the database allocates a varchar(255) instead of an unlimited size (PropertyLongString), which is better database design.
- If an editor enters more than 255 characters, they get an error notification in the CMS UI.
- BackingType can also be used for other scenarios beyond short strings.