New Posts New Posts RSS Feed: How to invoke instance verification
  FAQ FAQ  Forum Search   Calendar   Register Register  Login Login

How to invoke instance verification

 Post Reply Post Reply
Author
rclarke View Drop Down
Groupie
Groupie


Joined: 14-Jun-2007
Location: United States
Posts: 69
Post Options Post Options   Quote rclarke Quote  Post ReplyReply Direct Link To This Post Topic: How to invoke instance verification
    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?
Back to Top
GregD View Drop Down
IdeaBlade
IdeaBlade
Avatar

Joined: 09-May-2007
Posts: 374
Post Options Post Options   Quote GregD Quote  Post ReplyReply Direct Link To This Post 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);   

    } 



Edited by GregD - 03-Dec-2008 at 12:24pm
Back to Top
rclarke View Drop Down
Groupie
Groupie


Joined: 14-Jun-2007
Location: United States
Posts: 69
Post Options Post Options   Quote rclarke Quote  Post ReplyReply Direct Link To This Post Posted: 03-Dec-2008 at 1:24pm
Once again Greg, you are right.
Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down