Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Visual Studio can't find DataSet class
Message
 
À
28/04/2004 16:06:55
Information générale
Forum:
ASP.NET
Catégorie:
The Mere Mortals .NET Framework
Divers
Thread ID:
00899100
Message ID:
00899130
Vues:
11
I believe there may be one too many curly braces after the end of the constructor... I see two there. The second curly brace is effectively indication that that's all there is to the Shippers class.

PS - This is why I shy away from C# - I can't keep the curly braces and semi-colons straight! <grin>

Regards,
Carl

>I'm just starting to use MM and am trying to follow the "jump start" documentation to set up business classes (C#) for accessing the Northwind data. But I get a error on "DataSet" - "Expected class...". I must have forgotten something in the setup, but I have no idea where to look. Thanks!
>
>For example:
>
>using System;
>using System.Data;
>using OakLeaf.MM.Main.Business;
>
>namespace Chesapeake.Northwind.Business
>{
> public class Shippers : ABusinessObject
> {
> public Shippers()
> {
> this.TableName = "Shippers";
> this.PrimaryKey = "ShipperID";
> }
> }
> public DataSet GetAllShippers()
> {
> return this.GetDataSet("SELECT * FROM Shippers");
> }
>
>}
Carl Olson, Jr.
CEO, Founder
Cerelogic, Inc.

www.cerelogic.com

"Applying rocket science to business."
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform