Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Custom data access class - IDataAdapter.SelectCommand
Message
General information
Forum:
ASP.NET
Category:
The Mere Mortals .NET Framework
Miscellaneous
Thread ID:
00950319
Message ID:
00951198
Views:
18
>That's right...if you set up your business object as demonstrated in your code, it always instantiates your typed DataSet rather than an instance of mmDataSet...and then you don't have to use FillDataSet().

Just one problem...

The code sample you gave earlier in this thread (and therefore my class as shown above) won't compile because there is no overload of GetDataSet that takes zero parameters.

Here's the code you gave:
public DataSet GetVendors()
{
    // Pass whatever parameters you need here, or call FillDataSet 
    // if you have an existing ds you want to fill
    return this.GetDataSet(); 
}
So, sorry to be slow on the uptake, but it still seems to me that there is no way to have MM.NET use IDataAdapter.SelectCommand to fill a typed dataset. Both GetDataSet and FillDataSet require either an IDbCommand or a SQL statement in a string, and if you provide one of those, MM.NET will use that rather than IDataAdapter.SelectCommand to fill the typed dataset.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform