Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Business Objects in 3.5
Message
From
30/05/2008 16:28:58
Timothy Bryan
Sharpline Consultants
Conroe, Texas, United States
 
 
To
30/05/2008 14:20:16
General information
Forum:
ASP.NET
Category:
The Mere Mortals .NET Framework
Environment versions
Environment:
ASP.NET
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
MS SQL Server
Miscellaneous
Thread ID:
01320660
Message ID:
01320707
Views:
15
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
Previous
Reply
Map
View

Click here to load this message in the networking platform