Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
GetDataSet method and mutltiple result sets
Message
 
 
À
10/08/2009 09:35:03
Timothy Bryan
Sharpline Consultants
Conroe, Texas, États-Unis
Information générale
Forum:
ASP.NET
Catégorie:
The Mere Mortals .NET Framework
Versions des environnements
Environment:
C# 3.0
OS:
Windows XP
Network:
Windows 2003 Server
Database:
MS SQL Server
Divers
Thread ID:
01416914
Message ID:
01417093
Vues:
37
Hi Tim,

As I understood, we're talking about a single table here.

What do you think should I do - create one SP that will return multiple resultsets or multiple SPs to return one resultset each? If the later, should I create multiple properties for each DS and use GetDataSet for each one?

Thanks in advance.

>The table name is defined by you in the business object or by the BLG when you create your business objects and can be changed by you. It can be accessed at runtime as:
>
>myBizObj.TableName;
>
>
>On most any of the data access method calls you can pass in a table name if you want to use something other than the default. Mere Mortals is basically ADO with lost of work done for you and additional stuff added. If you want to combine multiple tables into a single dataset, then you can do that like any other ADO type stuff.
>Tim
>
>>As a practice, you should give your result set table names the same name as the table names you used when you designed the query.
>>
>>I will read data into the same typed DS definition that I used to create the report schema, so I never have to worry.
>>
>>If Mere Mortals doesn't allow you pass in your own definition of your tables names from a typed DS, I'm guessing you'd have to "name" the names afterwards. (It's been a few years since I used MM).
>>
>>However, I believe that in the absence of meaningful names, you might be able to set the report dataset tables based on position/table number within the dataset. So if your report definition used 3 tables, you can pass in a dataset at runtime with a dataset that has the 3 tables in the same order. I don't care for that practice, but it *should* work - at least it worked the first time I ever tried it.
If it's not broken, fix it until it is.


My Blog
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform