Thanks Walaa,
I also finally stumbled across this as:
public EntityView2<ProductEntity> GetProducts()
{
EntityCollection<ProductEntity> products = new EntityCollection<ProductEntity>(new ProductEntityFactory());
EntityView2<ProductEntity> productsView = null;
using (DataAccessAdapter productsAdapter = DataAccess.AdaptorFactory.GetNewAdaptor(true))
{
productsAdapter.FetchEntityCollection(products, null);
productsView = new EntityView2<ProductEntity>(products);
}
return productsView;
}
I will try out your code too.
As feedback to the documenter, it would have been easier for me if there was a simple example somewhere early in the documentation. Start simple. Throw the newbie a bone. Then, I can start considering PredicateBuckets etc.