Hi There,
My company just bought your product and I have start just writing some simple tests in Nunit but I'm a bit stuck on this very simple thing:
EntityCollection customers = new EntityCollection(new CustomerEntityFactory());
EntityCollection status = new EntityCollection(new CustomerStatusEntityFactory());
IPrefetchPath2 prefetchPath = new PrefetchPath2((int) EntityType.CustomerEntity);
prefetchPath.Add(CustomerEntity.PrefetchPathCustomer);
DataAdapter.FetchEntityCollection(status, null, prefetchPath);
DataAdapter.FetchEntityCollection(customers, null);
foreach (CustomerEntity Ce in customers)
{
Console.WriteLine(Ce.Code + " - " + Ce.Name + " - " + Ce.Status);
}
What I’m trying to do is get the customer status via a mapped relationship field. The Ce.Status is the mapped field but it always returns nothing. Any ideas what I’m doing wrong?
On another note, what’s your best practices recommendation for using LLBLGEN pro in a ASP.NET application? From the ASP.net page directly use the Data Classes? Or Should I build a layer between the LLBLGen code and my code?
How much of a performance hit is using self servicing compared to adapter (I know that is a "how long is a piece of string type question")?
Hope my questions aren't too newbish
Thanks for your help!
-M