Hello everyone...
I've been following all the drama with llblgen and devex lately, pagination issues and all that, has been interesting to read. My only comment is that all this technology is fairly new and getting all these design patterns, especially cross-vendor, to work together is a pretty amazing feat; once it all simmers down a little, things will work out.
Now that I am off my soap box... can someone provide me some clues to piecing together the AspxGridView with the LinqServerModeDataSource, and have LLBLGen power the actual queries?
We are bringing in a client that will require a heavy grid-based UI so we are exploring both devex and telerik; we have not committed to either yet. We are interested in server mode LINQ optimized queries that can provide us with filtering, grouping and summary information (we will for go the paging for now since we expect filtering to reduce our dataset).
Being a beginner in this area I understand that...
- The AspxGridview has a DataSourceId set to LinqServerModeDataSourceId
- The LinqServerModeDataSource has a ContextTypeName set to the DataContext.Name property of the *.dbml that is design from:
a. The VS2008 Server Explorer designer and Linq to Sql Classes item
b. or possibly with the LLBLGen designer and those new templates Frans released recently
- In the Page_Load or LinqServerModeDataSource_Selecting event one creates their LinqMetaData and passes in an adapter.
protected void Page_Load(object sender, EventArgs e)
{
var query = new LinqMetaData(DataAccessAdapterFactory.CreateStandardAdapter());
}
Then things get a bit hazy for me from here.
- What do you bind 'query' to?
- Is the LLBLGenProDataSource2 still used in this mix?
- I have read that the LinqMetaData should be instantiated using the parameterless CTor and add the adapter after that... not clear on this.
Code snippets, examples, or any details would be very much appreciated, but I'll keep plugging away at it.
Thanks!
isz