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."