|
Hello,
I have a hockey scoreboard application that uses a sql ce database to keep track of statistics. Currently my main form is connected to the database by the visual studio tools (like the dataset, table adapter, etc...). While it works I've noticed a slow down in my program overall since I've added them. Furthermore I already have a player class that I use to hold everyones stats before the database is updated (basically player objects hold the stats while the game is being played and then are used to update the db after the game) and putting all the database code in there makes the most since.
Trouble is I have no idea how to do that. Most videos/tutorials I've seen are either way over my head, show how to connect to a db to a form (like I have it now, or do not show a sql ce db.
So what I'm looking for is help in connecting my player class to the database (or dataset) so that I can access and update the db. As well as removing all the tools and code from my main form.
Any help would be great thanks
|