one small departure from interface-based programming

Posts   
 
    
Mountain
User
Posts: 21
Joined: 01-Apr-2005
# Posted on: 04-Apr-2005 21:56:12   

In DataAccessAdapterBase, in FindPkObject, the original code is:

EntityBase2 currentEntity=(EntityBase2)entitiesWithHash[i];

My altered code is:

IEntity2 currentEntity=(IEntity2)entitiesWithHash[i];

I believe there is no change in functionality. However, the original line was breaking my interface-based solution (Wrapper design pattern).

Any chance you can change this (if I'm correct about the functionality not changing)? Thanks.

Otis avatar
Otis
LLBLGen Pro Team
Posts: 39614
Joined: 17-Aug-2003
# Posted on: 04-Apr-2005 22:43:47   

Looking at the code it indeed isn't necessary to use the base class. I'll change this in 1.0.2004.2. That will indeed fix a hierarchy fetch problem.

Frans Bouma | Lead developer LLBLGen Pro