-1

Suppose I have following requirement:
I want to be able to create a list of rules that will look like this:

         Keyword          ToBeDeleted    ToBeMoved
Rule1:   "test keyword"   true           false
Rule2:   "test keyword2"  false          true

According to this rules I want to find all documents from specific path and to needed action according to my rules.

My Question:
What is the best way to store this rules dynamically in an WPF application,I need to be able to add/update/delete rules when needed using UI .

In my mind are following scenarios:

  1. Store them in a XML File.
  2. Store them in a database(Access probably)

Does anybody know better solutions for this?

Arulkumar
  • 12,966
  • 14
  • 47
  • 68
Nic
  • 1,088
  • 3
  • 19
  • 43

2 Answers2

1

My personal opinion is to steer clear from Access!

XML is a good option unless you don't want it modified or seen by users, which would mean you could encrypt it. If you go the XML route, I highly recommend looking into serialization.

I would personally look into SQLite or SQL Server Compact. There are many comparisons of the two you can Google for their pro's and con's. Here is a great blog post on the differences of them and others: Link

HuntK24
  • 158
  • 2
  • 13
1

I would recommend you the SQL Server Compact & SQLite Toolbox to create a local database.

For how to use the local database in your program please read through this post.

Community
  • 1
  • 1
L.P
  • 39
  • 8