Fetch entity not using primary key or constraint

Posts   
 
    
John
User
Posts: 28
Joined: 15-Jan-2005
# Posted on: 24-Mar-2005 16:20:41   

How would one fetch an entity using SQL like this for example

SELECT tblSomething.* from tblSomething WHERE tblSomething.Somefield = "value"

i.e. not using primary key or constraint

Thanks

Otis avatar
Otis
LLBLGen Pro Team
Posts: 39933
Joined: 17-Aug-2003
# Posted on: 24-Mar-2005 17:12:03   

In adapter use adapter.FetchNewEntity() and in selfservicing, fetch the entity in an entity collection.

Frans Bouma | Lead developer LLBLGen Pro