I'm trying to follow the instructions at http://www.llblgen.com/documentation/4.1/LLBLGen Pro RTF/Using the generated code/Adapter/Distributed systems/gencode_webservices.htm and elsewhere on how to serialize to JSON, but all of the examples are using Adapter and I'm using Self-Servicing and don't quite know how to translater. If I had Adapter code as follows:
public IEnumerable<ProductEntity> GetAllProducts()
{
using(var adapter = new DataAccessAdapter())
{
var metaData = new LinqMetaData(adapter);
return metaData.Product.WithPath(p=>p.Prefetch(x=>x.Category)).ToList();
}
}
and wanted to translate that to SelfServicing, what would it look like?
Thanks!
Laurie