QueryExtender Control on CslaDataSource

QueryExtender Control on CslaDataSource

Old forum URL: forums.lhotka.net/forums/t/9365.aspx


dec698 posted on Wednesday, August 11, 2010

I've tried to use this on v3.8 and I got this exception saying that it does not implement IQueryableDataSource, is this something we are looking to have in the near future or is it already supported with csla 4?

RockfordLhotka replied on Wednesday, August 11, 2010

I'm not sure what that interface is or does. I do know that CslaDataSource hasn't changed in any meaningful way for several years, and I have a Web Forms app running in CSLA 4 - which is the same CslaDataSource as 3.8.

What exactly are you trying to do that triggers this exception?

dec698 replied on Thursday, August 12, 2010

Sorry if I wasnt very clear on my post, I've read this article http://www.4guysfromrolla.com/articles/081110-1.aspx on how u could use the queryExtender control to filter data, on that article it says it only works on EntityDataSource or LinqToSql DataSource but still I give it a go and tried to use it using CslaDataSource and then when I hit the page comes that exception.

RockfordLhotka replied on Thursday, August 12, 2010

This is not something I've researched.

dec698 replied on Thursday, August 12, 2010

I do understand, but is this something you think worth adding support to CslaDataSource in the near future?

RockfordLhotka replied on Thursday, August 12, 2010

I just glanced at the web page you referenced. This is not something that is supported by CSLA at all - the idea of applying a where clause on the client to what is basically server-side code. CSLA is not an ORM, and there's no way to do a LINQ query against CSLA objects such that it translates to a SQL query in the database - which is what's happening with EF and L2S.

In short, this concept doesn't translate out of the ORM space, and so doesn't translate into CSLA.

Copyright (c) Marimer LLC