Jessynoo wrote:
Hi,
I don't think it will be simple because all the operations run by the data access adaptor in the process of prefetchpath fetching involve manipualating entities and collections.
I was thinking about a modification so that the data access adaptor silpmy load all query in datatable, without working on entitycollection/entity
Jessynoo wrote:
I can see two strategies: Either you let the adapter perform the fetch, and transform the resulting entity tree into you dataset, or you try to intercept the various queries and build your dataset progessively.
I've already done a simple procedure to recursively conver an entitycollection+subcollection in a dataset, but the problem is that is inefficient.
Also I can't load 100'000 entity + subentity... I don't have 1 TeraBytes of Ram
100'000 row are a realistic number in our reporting application, and it's easly managable with datatable.
Jessynoo wrote:
In both cases I would go for Entity Projectors. DataProjectorToDataTable should make it.
You can even design TypeList quickly to avoid having to build your DataTables (TypedList inherits from DataTable).
I was looking for a flexible way of using prefetch path to load a dataset.
I can't load the entitycollection because of the number of entity loaded.
Jessynoo wrote:
Now if you want to build the dataset during the prefetch process, you may override in a dedicated adapter the MergeNormal and MergeManyToMany virtual methods to intercept all the inner collections and project them.
Hope that helps
This is interesting...
Thanks, Max