Expert |
|
Joined: Fri May 13, 2005 5:56 pm Posts: 308 Location: Santa Barbara, California, USA
|
well the obvious answer is to increase the size of your text column or switch to another column type that . however, i think the answer you are looking for is to use a try/catch block. if you catch the exception, NH should return a "Cannot insert. Object would be truncated." error that you can handle apprioriately.
imho, your presentation layer should also do some validation that prevnts the user from entering more than whatever the maximum character count is.
-devon
|
|