Hi
hopefully the title of this post is not to confusing. Here is what I want to do:
I have a single stored procedure which returns "Customers" as the first result set and "Orders" as the second result set and "OrderDetails" as the third result set.
I use the Entity Framework Extensions to get the returned Entities into a single ObjectContext.
This works fine - I used it many times with Silverlight and WCF - all the entities and relations are materialized just fine.
This means, with a single call to a "highly specific optimized magic" Stored Procedure I get all the "master" entities and their related "child" entities at once. Good for the server, good for me, good for the environment ;)
Now what I want to do is:
Show the "master" entities and the related "child" entities in a hierarchical ASP.NET AJAX RadGrid.
What I don't know yet:
How to do it ;)
[The EntityDataSource does not work in this scenario, I guess.]
How to avoid multiple trips between the server and the client using hierarchical entities from a single context.
[There is no example or documentation covering this.]
Summary:
How to show Master-Detail "Entity Framework" Entities in a hierarchical RadGrid that come from a single call to a Stored Procedure ?
How to avoid multiple client calls to the server to fill the hierarchy from the Entities in the ObjectContext into the RadGrid ?
How would you solve this using OpenAccess ORM instead of the Entity Framework - Keeping in mind that all the data is returned from a single stored procedure call which returns the complete hierarchy in multiple result sets at once?
Cheers
Bernd
hopefully the title of this post is not to confusing. Here is what I want to do:
I have a single stored procedure which returns "Customers" as the first result set and "Orders" as the second result set and "OrderDetails" as the third result set.
I use the Entity Framework Extensions to get the returned Entities into a single ObjectContext.
This works fine - I used it many times with Silverlight and WCF - all the entities and relations are materialized just fine.
This means, with a single call to a "highly specific optimized magic" Stored Procedure I get all the "master" entities and their related "child" entities at once. Good for the server, good for me, good for the environment ;)
Now what I want to do is:
Show the "master" entities and the related "child" entities in a hierarchical ASP.NET AJAX RadGrid.
What I don't know yet:
How to do it ;)
[The EntityDataSource does not work in this scenario, I guess.]
How to avoid multiple trips between the server and the client using hierarchical entities from a single context.
[There is no example or documentation covering this.]
Summary:
How to show Master-Detail "Entity Framework" Entities in a hierarchical RadGrid that come from a single call to a Stored Procedure ?
How to avoid multiple client calls to the server to fill the hierarchy from the Entities in the ObjectContext into the RadGrid ?
How would you solve this using OpenAccess ORM instead of the Entity Framework - Keeping in mind that all the data is returned from a single stored procedure call which returns the complete hierarchy in multiple result sets at once?
Cheers
Bernd