I find that the most painstaking part of writing distributed code using LLBLGen is creating the server-side data retrieval objects (see below):
public EntityCollection GetAllCatalogueDetailCategoryList()
{
EntityCollection lst = new EntityCollection(new CatalogueDetailCategoryEntityFactory());
DataAccessAdapter adapter = new DataAccessAdapter();
IPrefetchPath2 prefetchPath = new PrefetchPath2((int)EntityType.CatalogueDetailCategoryEntity) ;
prefetchPath.Add(CatalogueDetailCategoryEntity.PrefetchPathCatalogueDetailSubCategories) ;
IRelationPredicateBucket bucket = new RelationPredicateBucket();
ISortExpression sorter = new SortExpression(SortClauseFactory.Create(CatalogueDetailCategoryFieldIndex.Description, SortOperator.Ascending));
sorter.Add(SortClauseFactory.Create(CatalogueDetailSubCategoryFieldIndex.Description, SortOperator.Ascending)) ;
adapter.FetchEntityCollection(lst, bucket, 0, sorter, prefetchPath);
return lst;
}
And while I appreciate the power that all these clauses provide us as developers, I'm wondering if it's possible to develop some kind of UI to do it... or perhaps teach TemplateStudio to do it.
I wonder...
Jeff