Jason Mitchell

Using WCF for database access in XNA: Sample Project

I spent a bit of time this evening on the phone talking to a friend about life, the universe and work.  We got around to talking a bit about accessing a database from within an XNA application so I thought I would make a quick sample and post it on here.

This project uses a simple WCF service to get some text from the database on the server and to store details of clicks within the game in the database.  On the server-side it uses LINQ to SQL to interact with the database for retrieving and adding records.

Before running this sample you should probably do a full rebuild of the solution and then update the service reference in the WindowsGame1 project.  Get it from the link below:

Download: http://www.jason-mitchell.com/Uploads/XNAWCFSample-20_09_2011.zip

No related posts.


Categorised as: WCF, XNA


One Comment

  1. Barry says:

    Big thumbs up Jason,very nice sample

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> <pre lang="" line="" escaped="" highlight="">

Spam protection by WP Captcha-Free