Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Sample of GetDataSet with parameters?
Message
De
10/08/2009 17:44:14
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:
01417179
Message ID:
01417206
Vues:
33
>Hi everybody,
>
>I have this code
>
>
>public DataSet GetDataForRouteScheduleReport(int CompanyID, DateTime StartDate, DateTime EndDate)
>        {
>            // Returns Header DataSet
>            DataSet ds = this.GetDataSet("getRouteScheduleReportData", CommandType.StoredProcedure);
>            ds.Tables[0].TableName = "RouteData";
>            ds.Tables[1].TableName = "Cleaners";
>            ds.Tables[2].TableName = "Equipment";
>            ds.Tables[3].TableName = "Jobs";
>            ds.Tables[4].TableName = "JobDetails";
>            ds.Tables[5].TableName = "Notes";
>            return ds;
>        }
>
>but I believe this code doesn't pass parameters. Do we have a sample of passing parameters here?
>
>Thanks in advance.


I am not sure what you are trying to do here. Are you trying to rename the tables? What do you mean by passsing parameters. The only thing returned is the DataSet and what is passed in is defined in the arguments of your method. I guess I am just not sure of the question.
Tim
Timothy Bryan
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform