G
Guest
I have just recently had an opportunity to start working with VS2005.
I have managed to reproduce an existing ASP.Net 1.1 page almost entirely
using drag n drop designers and object data sources except for one thing.
I need to bind a DataList to the result of a stored procedure that filters,
sorts and union joins to return a result set vastly different to any existing
TableAdaptor in the designer-generated DataSet.
I cannot add a new query to an existing TableAdaptor, as the SP returns a
different schema.. and I cannot add a QueryAdaptor as they only return single
values..
Is it better to create a new TableAdaptor based on this SP to return a
strongly-typed datatable (that is probably only ever used by this one
control)? or add a function to my data layer to execute a DataReader from the
SP (and lose the benefits of strongly-typed DTs)?
any advice appreciated!
I have managed to reproduce an existing ASP.Net 1.1 page almost entirely
using drag n drop designers and object data sources except for one thing.
I need to bind a DataList to the result of a stored procedure that filters,
sorts and union joins to return a result set vastly different to any existing
TableAdaptor in the designer-generated DataSet.
I cannot add a new query to an existing TableAdaptor, as the SP returns a
different schema.. and I cannot add a QueryAdaptor as they only return single
values..
Is it better to create a new TableAdaptor based on this SP to return a
strongly-typed datatable (that is probably only ever used by this one
control)? or add a function to my data layer to execute a DataReader from the
SP (and lose the benefits of strongly-typed DTs)?
any advice appreciated!