Data access in Windows apps?
You can store data on the user's device by using a SQLite database. You can also connect your Windows app directly to a SQL Server, Cosmos DB, MySQL, or MongoDB database without having to use an external service layer.
Topics in this section
In this section, you'll learn how to store and retrieve data in a Windows app by using different back-end databases. Each topic provides a guide to help you get started.
Topic | Description |
---|---|
Use a SQLite database on Windows | Shows you how to use SQLite to store and retrieve data in a light-weight database on the user's device. SQLite is a server-less, embedded database engine. |
Use a SQL Server database in a Windows app | Shows you how to connect directly to a SQL Server database and then store and retrieve data by using classes in the System.Data.SqlClient namespace. No service layer required. |
Use a Cosmos DB database in a Windows app | Shows you how to work with a Cosmos DB database and test the connection programmatically. Cosmos DB is a cloud-based document database. |
Use a MySQL database in a Windows app | Shows you how to connect to a MySQL database and interact with the database in a Windows application. MySQL is an open source, cross-platform relational database. |
Use a MongoDB database in a Windows app | Shows you how to work with a MongoDB database and test the connection programmatically. MongoDB is a cross-platform document database. |
Related content
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.
Windows developer