Override of EntityFetch

Posts   
 
    
JimDaug
User
Posts: 1
Joined: 29-Aug-2007
# Posted on: 29-Aug-2007 19:18:48   

Adapter, version 2.5

We are overriding the EntitySave, EntityDelete methods of the DataAccessAdapter to support our need for a horizontally distruted set of databases with the same entities in the distruted databases. Unfortuately, the override for the Fetch does not receive the Entity object itself, it receives the Entity.Fields object.

Are we missing something on a way to intercept a Fetch request at a point where we have the Entity and the Query objects?

daelmo avatar
daelmo
Support Team
Posts: 8245
Joined: 28-Nov-2005
# Posted on: 30-Aug-2007 06:13:30   

HI JimDaug,

These are the methods (some of them) of the DataAccessAdapterBase class you can override:

public virtual bool SaveEntity(IEntity2 entityToSave, bool refetchAfterSave, IPredicateExpression updateRestriction, bool recurse);

public virtual bool DeleteEntity(IEntity2 entityToDelete, IPredicateExpression deleteRestriction);

public virtual bool FetchEntity(IEntity2 entityToFetch, IPrefetchPath2 prefetchPath, Context contextToUse, ExcludeIncludeFieldsList excludedIncludedFields);

All of those receive an _IEntity2 _parameter. Is that _FetchEntity _method that you want to override?

David Elizondo | LLBLGen Support Team