Print Page | Close Window

How to invoke instance verification

Printed From: IdeaBlade
Category: DevForce
Forum Name: DevForce 2009
Forum Discription: For .NET 3.5
URL: http://www.ideablade.com/forum/forum_posts.asp?TID=1012
Printed Date: 26-Jan-2026 at 12:35am


Topic: How to invoke instance verification
Posted By: rclarke
Subject: How to invoke instance verification
Date Posted: 02-Dec-2008 at 11:46am
In DevForce Classic instance verification was executed as a method on the entity (i.e. <Entity>.Verify). How is this done in Devforce EF?



Replies:
Posted By: GregD
Date Posted: 03-Dec-2008 at 11:53am
Originally posted by rclarke

In DevForce Classic instance verification was executed as a method on the entity (i.e. <Entity>.Verify). How is this done in Devforce EF?
 
Sounds like your model had a BaseEntity as used in the Verification sample code and tutorials.  That Verify() method you were using was defined in the BaseEntity, not in DevForce. It implemented a Verify() method that essentially did this:

 

this.VerifierEngine.Execute(this);  //v3 code

 

where this is the BaseEntity instance.

 

For v4 the equivalent would be:

 

    private VerifierResultCollection Verify() {

      return this.EntityAspect.VerifierEngine.Execute(this);   

    } 



Posted By: rclarke
Date Posted: 03-Dec-2008 at 1:24pm
Once again Greg, you are right.



Print Page | Close Window