How to execute IsValid() and GetRuleViolation() when using DTO & IOC

Jun 7, 2012 at 2:22 AM

We're using nHydrate 4.1 in our smartclient project and added references to the following:

  • DataTransfer
  • IOC
  • Service Interface

Now, my question is,

  • How do we execute the method IsValid() in business objects and enumerate errors via GetRuleViolation() if our UI has binding to DTO?

I tried to address the problem by adding reference to DALProxy and used the Fill() method to translate dto to businesss object. 

  • Is this the right approach?