FetchEntity vs FetchNewEntity?

Posts   
 
    
llblPowa
User
Posts: 41
Joined: 19-Nov-2006
# Posted on: 21-Dec-2006 00:37:33   

Hello,

Sorry for this question... but what is the difference between FetchEntity and FetchNewEntity?

Thanks,

++

Walaa avatar
Walaa
Support Team
Posts: 14950
Joined: 21-Aug-2005
# Posted on: 21-Dec-2006 06:35:15   

If you know the PK if the entity you want to fetch, then use FetchEntity, in which you will instaniate an entity using its PK, then you fetchit (FetchEntity)

FetchNewEntity -> use a filter or a Unique Constraint/key to fetch an entity that you don't know its PK.