Jump to content
Search In
  • More options...
Find results that contain...
Find results in...

Binary or SQL Data Storage


XerShade
 Share

Recommended Posts

> Okay pick which method of storing game data you prefer, map tile data will always be in a binary because you will be there for days trying to do that with a sql database.

Not true at all. I voted SQL/EF with CodeFirst.
Link to comment
Share on other sites

> Enlighten me then ![:P](http://www.touchofdeathforums.com/community/public/style_emoticons/<#EMO_DIR#>/tongue.png)

LINQ. Design your Map class as normal, setup your db context (as I was saying earlier in the shoutbox), and wahlah; you can query an SQL database using LINQ like so:

```

Map thisMap = (from m in YourContext.Maps where m.MapNumber == 123 select e).FirstOrDefault();

```

Let me know if you need help with it. Takes some getting use to how you deal with class changes using migrations and the initial setup, like installing NuGet and the EF package.
Link to comment
Share on other sites

> Whats wrong with good ol fashioned binary?
>
> Write the entire class to a file. Read the entire class back.

Toolset, man. Client side, most viable solution is binary and I'm a fan of serialization to both binary and XML (sooo gud), naturally. If you want to manage your data in a number of different ways with remote access/server side? SQL.
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...