๐ A repository to learn MongoDB with .NET (C#)
This repository is a starting point for learning how to integrate MongoDB, a popular NoSQL database, with .NET (C#). It demonstrates how to connect to a MongoDB instance, perform CRUD operations, and use advanced MongoDB features within a .NET application.
- MongoDB Integration: Learn how to interact with MongoDB from a .NET application.
- CRUD Operations: Practice Create, Read, Update, and Delete functionalities.
- Flexible Schema: Explore the flexibility of MongoDB's schema-less nature in .NET.
To get started, make sure you have:
- MongoDB Instance: Install MongoDB locally or use a cloud provider like MongoDB Atlas.
- .NET SDK: Install the latest .NET SDK from dotnet.microsoft.com.
- MongoDB Driver for .NET: The required driver is included in the project dependencies.
-
Clone this repository:
git clone https://github.com/GuilhermeStracini/hello-world-mongodb-dotnet.git cd hello-world-mongodb-dotnet
-
Install dependencies:
dotnet restore
-
Set up your MongoDB connection string:
- Rename
appsettings.example.json
toappsettings.json
. - Add your MongoDB connection details.
- Rename
-
Run the application:
dotnet run
-
Follow the console instructions to explore MongoDB operations.
- Implementing MongoDB with .NET
- MongoDB .NET Driver Documentation
- MongoDB Atlas
- Official MongoDB Documentation
This repository is licensed under the MIT License.