I have an Entity which has a VarChar field of 350 chars. On rare occasions, the length will exceed that. An error is then thrown by the database.
If I set the MaxLength of the property on the Entity, I still get an error that says MaxLength has been exceeded.
What is the guidance on avoiding this type of error?
There is no GUI involved, it occurs on backend processing, so I don't think it really a validation issue.
If it just truncated the field, that would be OK with me as it's usually corruption on a data error when it gets exceeded.
But I do want to save the rest of the entity which I can't do if it's throwing an error.
Greg