Re: Validation and Business Objects

Posts   
 
    
Krish
User
Posts: 91
Joined: 02-Jan-2008
# Posted on: 24-Mar-2009 12:46:52   

Can I please get some guidance on how to implement business rules when using llblGen for the DAL. For example, in a asp.net web application when a user clicks the save button I want to do some basic validation (a mandatory field has some value etc.) and also do some complex validation. eg. the values entered by the user can be validated based on values that come from more than one entity. In this scenario, where do I create the class (eg. part of the llblGen DAL or in the App_Code folder or some where else? Also how do I ensure the validation in these classes (ie. business objects) automatically get called when the user tries to save the data.

I am using LLBLGen final version 2.6. Self servicing 2 class, C# and .NET Framework 3.5.

MTrinder
User
Posts: 1461
Joined: 08-Oct-2008
# Posted on: 24-Mar-2009 21:00:05   

LLBLGen has an extensive, flexible validation framework. Have a look at the documentation for validation and Dependency Injection and feel free to come back to us with any further questions.

Matt