https://github.com/varm/dotnet.mongodb
This project contains a .NET 6 class library that encapsulates a helper class for CRUD (Create, Read, Update, Delete) operations on a MongoDB database using the C# language.
https://github.com/varm/dotnet.mongodb
Last synced: about 1 month ago
JSON representation
This project contains a .NET 6 class library that encapsulates a helper class for CRUD (Create, Read, Update, Delete) operations on a MongoDB database using the C# language.
- Host: GitHub
- URL: https://github.com/varm/dotnet.mongodb
- Owner: varm
- License: mit
- Created: 2022-10-14T09:19:35.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2022-10-14T09:30:59.000Z (almost 4 years ago)
- Last Synced: 2025-11-30T10:59:43.350Z (8 months ago)
- Language: C#
- Size: 10.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# MongoDB with C#
English | [简体中文](https://github.com/varm/dotnet.mongodb/blob/main/README.zh-CN.md)
## Introduction
This project contains a .NET 6 class library that encapsulates a helper class for CRUD (Create, Read, Update, Delete) operations on a MongoDB database using the C# language.
## Development
The following is a personal local development environment, if the environment is different, please try it yourself.
* Visual Studio 2022
* .NET 6.0
* C#/.NET Driver Version 2.17.1
* MongoDB 5.0.13
## Usage
* Open the project `appsettings.json` file and fill in the connection string in the `mongodb` node, for example:
```
mongodb+srv://UserName:@cluster0.mongodb.net/?retryWrites=true&w=majority
```
> ⚠ Please fill in your own database connection string.
* There are examples of common CRUD operations in the test project.
## License
[MIT License](https://opensource.org/licenses/MIT) © Zerow