Contradicting information

Posts   
 
    
Posts: 93
Joined: 13-Feb-2008
# Posted on: 26-Feb-2008 15:52:34   

From the class summary of a generated validator class

/// <summary>Implementation of the PaymentMethod Validator class. This class is the default location for validation rules for the /// PaymentMethodEntity class. It is plugged into an instance of the PaymentMethodEntity class at construction time, so the validator is set automatically for you. /// This class is generated. A special user code region is available for you to add your own validation logic by overriding the base class methods. This code is preserved between code generation cycles. /// Though it's recommended that you use a partial class.</summary>

From Documentation>Using the Generated Code>Validation per field or per entity

**Entity classes don't get a validator instance by default, even if you generate them through LLBLGen Pro. **

Just noticed this while looking into using Dependency Injection for Validation...obviously not an urgent issue, but thought I'd post it anyway...

Otis avatar
Otis
LLBLGen Pro Team
Posts: 39614
Joined: 17-Aug-2003
# Posted on: 26-Feb-2008 17:05:13   

v2.5 I pressume? simple_smile Thanks for the heads up. We'll correct it simple_smile

(fixed in next build)

Frans Bouma | Lead developer LLBLGen Pro