-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?

2 Answers 2

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

Sign up to request clarification or add additional context in comments.

Comments

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.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.