Yasser Lima
Yasser Lima

Reputation: 55

Which one is the most suitable way to store small amount of data in Windows Store app

I need to know what is the best way to save a small amount of data generated by a simple agenda app for Windows Store. I looked around the internet and found the SQLite database and the JSon serialization. Which one should i use? Unfortunately i was not able to find any material that suited me. Is there any place i can find a good tutorial about how to use one of these technologies?

Obs: I'm using Windows 8, not 8.1 and i'm developing with XAML and C#.

Upvotes: 0

Views: 228

Answers (1)

Cyprien Autexier
Cyprien Autexier

Reputation: 1998

It depends on your needs. If you have simple data that do not requires indexation, storing your data using serialization (Json, Xml or Protobuf) is a very good and simple option. I really like protobuf (also available on nugget) because it is a binary format (small footprint) and easy to use. You can either user the protobuf dsl or attributes (code-first like).

If you have more complex data scheme and need more features like indexation or transactions it is better to choose SQLite or Esent.

Upvotes: 1

Related Questions