C# School Assignment? Project Due Tomorrow? Chat LIVE With A Programming Expert!

Welcome to Dream.In.Code
Become a C# Expert!

Join 307,084 C# Programmers for FREE! Get instant access to thousands of C# experts, tutorials, code snippets, and more! There are 2,258 people online right now. Registration is fast and FREE... Join Now!




accessing/updating sql ce database from a class

 

accessing/updating sql ce database from a class

lebron2386

1 Mar, 2009 - 06:10 PM
Post #1

New D.I.C Head
*

Joined: 6 Feb, 2009
Posts: 4

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

User is offlineProfile CardPM
+Quote Post


lebron2386

RE: Accessing/updating Sql Ce Database From A Class

3 Mar, 2009 - 01:54 PM
Post #2

New D.I.C Head
*

Joined: 6 Feb, 2009
Posts: 4

You know I guess is does not have to be specific to a sql ce database. I'm sure that code relating to a sql server express database would work fine. Thanks
User is offlineProfile CardPM
+Quote Post

Fast ReplyReply to this topicStart new topic

Time is now: 11/21/09 10:43AM

Live C# Help!

Be Social

Dream.In.Code RSS Feed Dream.In.Code LinkedIn Group Follow Us On Twitter Fan Us On Facebook

C# Tutorials

Reference Sheets

C# Snippets

DIC Chatroom

Bye Bye Ads

Monthly Drawing

Thumb Drive

Top Contributors

Top 10 Kudos This Month