It's used by SchemaExport. It may also be used by you (or other fw) if you need this info for your own purposes.
AFAIK, nh does not use this info for any validation/truncation at all. How should this be done in some general way? Truncated? Throw ex? Trim the string? etc etc /Roger ________________________________________ Från: [email protected] [[email protected]] för Josh Rogers [[email protected]] Skickat: den 14 juli 2009 20:11 Till: [email protected] Ämne: [nhusers] Length attribute in property element I am curious as to whether this serves any purpose? I just recently had an issue where I was trying to push a string that was too long into a column. I knew it was too long but I made sure the Length attribute was set to the desired length assuming (which I should not have done) that NHibernate would take care of the truncation of the string. I assumed that this was the purpose of the length attribute in the mapping file, obviously this is not the case so could someone explain the purpose? Thanks! Josh --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "nhusers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/nhusers?hl=en -~----------~----~----~----~------~----~------~--~---
