The MyGolfGearDP Data Access Class

The UserDS strongly typed dataset class is useful only after it is filled with the appropriate data. Because it inherits directly from the DataSet class, it can be filled just as any other DataSet class can be. Filling a DataSet requires the use of a DataAdapter. For the MyGolfGear. NET implementation, we encapsulated this functionality in a data provider class called MyGolfGearDP.

The MyGolfGearDP class handles all the interaction between other DataSet classes and the data these classes provide access to. Typically, this consists of a get method and an update method. These methods return a newly filled dataset or update a dataset passed in.

The GetUsers method takes reference to a UserDS class and uses a

Get Building e-Commerce Sites with the .NET Framework now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.