What is the best or preferred way to store data for a .NET desktop application? I know this could depend on how I will be using the application, but I’m just looking for a simple and easy way to store data for .NET applications.
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
It kind of depends on the nature of the data, and your “target audience”.
If this is a lot of data, maybe file storage is not something you want, and you want to look at a database-like storage.
If it is some minimal set of user choices, that are often read, and limited written, the registry is a good choice.
If you are in an enterprise environment, you also need to be aware on limitations (policies) that prevent you from storing a lot of data in the user profile.
If you want the user be able to select the files, allow the user to store the data in
My Documents, but get the exact location from the user. Technical data is better stored in the “Local Application data” or “Isolated Storage”.