Adapter, Newest Code, VS 2008, C#, AJAX, DevExpress
(HelloWorld App)
I have an LLBLProDataSource bound and working with a DevExpress AJAX grid.
After the grid edits, I handle nicely the LLBLProDataSource .EntityUpdating like this:
protected void binder_EntityUpdating(object sender, SD.LLBLGen.Pro.ORMSupportClasses.CancelableDataSourceActionEventArgs e)
{
SaleEntity entity = e.InvolvedEntity as SaleEntity ;
//Works fine here
}
I try to attach a Validator to the SaleEntity,but it doesn't seem to attach.
[DependencyInjectionInfo(typeof(SaleEntity), "Validator", ContextType = DependencyInjectionContextType.Singleton)]
public class MyValidator: ValidatorBase
{
public override bool ValidateFieldValue(IEntityCore involvedEntity, int fieldIndex, object value)
{
//Never comes here
return base.ValidateFieldValue(involvedEntity, fieldIndex, value);
}
}
What am I missing?