Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Business Objects in 3.5
Message
De
30/05/2008 16:28:58
Timothy Bryan
Sharpline Consultants
Conroe, Texas, États-Unis
 
 
À
30/05/2008 14:20:16
Information générale
Forum:
ASP.NET
Catégorie:
The Mere Mortals .NET Framework
Versions des environnements
Environment:
ASP.NET
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
MS SQL Server
Divers
Thread ID:
01320660
Message ID:
01320707
Vues:
18
Shawn,

>I am working through the MM.Net Developers Guide in Creating Web Forms Applications->Integrating Business Objects with a Web Form->Step 2: Retrieving Data using Business Objects.
>
>I have a Crew Business Object in my project.
>
>When typing the line: DataSet dsCrew = this.oCrew.GetCrewByCrewID(CrewID);
>There does not appear to be any member function starting with GetCrew...
>
>Am I missing something?

In addition to what Bob said, you also need to verify you match the return type. In your code above you are asking for a dataset as the return type. Therefor your method signature would look like this.
public DataSet GetCrewByCrewID(int crewId)
Typically you would return either a CrewEntity or a mmBindingList<CrewEntity> like this.

public CrewEntity GetCrewByCrewID(int crewID)

or an entity list like this
public mmBindingList<CrewEntity> GetCrewByCrewID(int crewID)
It is a matter of wether you are returning a single row or multiple rows.

I hope that helps
Tim
Timothy Bryan
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform