Inconsistency of two approaches?

Posts   
 
    
Posts: 19
Joined: 03-Feb-2006
# Posted on: 07-Feb-2006 17:57:26   

Hajo,

I want to retrive User object from database. When I use UserDAO.FetchUserUsingUCName(...) then object.IsNew is set to true but when I use UserEntity.FetchUsingUCName(...) then IsNew is set to false.

It seems that only the second result is correct?

Otis avatar
Otis
LLBLGen Pro Team
Posts: 39930
Joined: 17-Aug-2003
# Posted on: 07-Feb-2006 19:21:10   

You shouldn't use UserDAO.FetchUserUsingUCname... you should use the method on the entity. This is because the maintenance is done in the entity method, not in the DAO, which is just filling fields simple_smile

Frans Bouma | Lead developer LLBLGen Pro
Posts: 19
Joined: 03-Feb-2006
# Posted on: 08-Feb-2006 12:34:18   

Ok, thanks.