简体   繁体   中英

Saving user information in wpf c# app

I am creating ac# wpf application that will store users information and allow users to view other users profiles in a corporation.

What would be the best way to store the data that each user is entering in order to have it accessible from a centralized location?

I'm fairly new to creating connections to databases in wpf applications and any push in the right direction would be greatly appreciated.

I've been reading a bit about SQLlite and it seems like it has its pros due to its mobile characteristics but does this mean that the SQLlite database will be local to each user? I need it to be centralized so that data entered from anywhere goes into one database.

Thank you

You could use ADO.net datasets to get the data from the server but this is done by downloading a local datatable and syncing it using a data adapter

connection between client and server

how to do in visual studio

As you stated mobile characteristics are not what you need. As for a central database consider the free SQL Express from Microsoft. You will need some type of security so they can only update their own profile.

Probably one of the more straightforward options is to create an Entity Framework model for your application. This may serve as a primer for your exploration of the topic:

Databinding with WPF

You'll probably find it easiest to develop against your local SQLExpress instance or some other local data store. But the final solution will need to be connected to an enterprise-ready database. Since there was no mention of cost constraints and the nature of this question is more of "how?" versus "what to use?", I see no reason why this shouldn't be a SQL Server solution.

Ultimately, though, this question is rather broad in scope and cannot be adequately addressed in a simple answer here.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM