This is something I've been pondering over recently, and would appreciate any thoughts on the subject.
Currently I develop and maintain a fairly large web based application that uses LLBLGen for the DAL. Recently, I've had to create some smaller applications that reference the same DAL.
However, all my field validation is done through the built in ASP.NET validation controls (RequiredFieldValidator, RegularExpressionValidator etc) and as such I am having to re-implement this functionality in the other applications.
I am considering replacing these validation controls with LLBLGen Validator classes (thereby allowing me to share the validation logic accross the applications) and was wondering whether anyone thinks this is worthwhile. What I need to be able to do is bubble the error messages up to my UI and display them in a control similar to the built in ASP.NET ValidationSummary.
Is there a recommended way to do this? When using the LLBLGenProDataSources with LivePersistence disabled, I assume I could catch any ORMEntityValidatorExceptions inside the PerformWork event, but how would I go about doing this with LivePersistence enabled?
Any thoughts would be welcome and appreciated.
Jez