Adding 2 subpath to a prefetch

Posts   
 
    
jacob
User
Posts: 32
Joined: 20-May-2005
# Posted on: 20-May-2005 13:47:03   

Hii

I have some problem with prefetch.

I know that this code is wrong, but dont know how to add the subpath, so if someone could help me that would be great.


PrefetchPath prefetch = new PrefetchPath((int) EntityType.MicroCompanyEntity );
prefetch.Add(MicroCompanyEntity.PrefetchPathMicroSite);
prefetch.Add(MicroCompanyEntity.PrefetchPathMicroSite).SubPath.Add( MicroSiteEntity.PrefetchPathMicroStyleSheet );
prefetch.Add(MicroCompanyEntity.PrefetchPathMicroSite).SubPath.Add( MicroSiteEntity.PrefetchPathMicroStyleSheetColor );

Short table description:

MicroCompany: companyGuid <- autogenerated primary key name

MicroSite companyGuid <- primary key styleSheetColorID styleSheetID

MicroStyleSheetColor styleSheetColorID <- primary key color

MicroStyleSheet styleSheetID <- primary key name

Hope someone would be able to understand this simple_smile

Otis avatar
Otis
LLBLGen Pro Team
Posts: 39933
Joined: 17-Aug-2003
# Posted on: 20-May-2005 14:23:25   
Frans Bouma | Lead developer LLBLGen Pro