Kevin,
Thanks for the contribution (checked-in rev. 516). Great implementation.
I've made a change though, hoping you don't mind. I've renamed the SelectionRequired handler to the ForeignKeyValueRequired, and since your logic handles foreignkeys that are numeric, i've put condition in place to check for the key datatype and render ForeignKeyValueRequired or StringRequired handlers.
[edit] There seem to be already condition in place that performs AllowDBNull check if (! cols[x].AllowDBNull && IsCSReferenceDataType(cols[x])) Your implementation remains, however the handler is removed
Thanks again!
[/edit]
Mike Shatny
--------------------------------------------------------------
Member of the .netTiers team http://www.nettiers.com
--------------------------------------------------------------