Hello LLBLGen'ers.
Using the current release verion of GenPro, VS2005, remoting and adapter. I'm creating a new entity in the client code: new CategoryEntity(). Upon save, a trigger in the database creates a related record in CategoryDetail. The problem is, the refetch doesn't retrieve the related CategoryDetail record because, obviously, there was no Prefetch path. When I try to create a new CategoryEntity using:
public CatalogueCategoryEntity GetCatalogueCategory()
{
CategoryEntity ent = new CategoryEntity();
IPrefetchPath2 prefetchPath = new PrefetchPath2((int)EntityType.CategoryEntity);
prefetchPath.Add(CategoryEntity.PrefetchPathCategoryDetail);
DataAccessAdapter adapter = new DataAccessAdapter();
adapter.FetchEntity(ent, prefetchPath);
return ent;
}
and then I try to save, I get a database generated error. It appears that no prefetch graph can be generated on a non-existant entity.
I would like to Refetch a new entity with related collections. Is this doable?
Thanks.
Jeff