MongoDB CRUD Operations in C#
Learn how to perform basic CRUD operations with the MongoDB C# driver.
MongoDB CRUD Operations in C#
Unit Overview
In this unit, you will learn how to perform basic MongoDB CRUD operations with the MongoDB C# driver. First, you will learn how BSON documents are expressed in C#. Then, you'll learn how to insert, query and retrieve, update, and delete documents in a C# application. Finally, you'll learn how to create a multi-document transaction.
Prerequisites
Lessons in This Unit
- Lesson 01: Working with MongoDB Documents in C#
- Lesson 02: Inserting a Document in C# Applications
- Lesson 03: Querying a MongoDB Collection in C# Applications
- Lesson 04: Updating Documents in C# Applications
- Lesson 05: Deleting Documents in C# Applications
- Lesson 06: Creating MongoDB Transactions in C# Applications
-
01.
-
02.Lesson 2: Inserting a Document in C# Applications
- Learn
- Practice
-
03.Lesson 3: Querying a MongoDB Collection in C# Applications
- Learn
- Practice
-
04.Lesson 4: Updating Documents in C# Applications
- Learn
- Practice
-
05.Lesson 5: Deleting Documents in C# Applications
- Learn
- Practice
-
06.Lesson 6: Creating MongoDB Transactions in C# Applications
- Learn
- Practice
-
07.Conclusion
- Learn

Caleb Thompson | Staff Engineer
Caleb is a Staff Engineer at MongoDB, working primarily on Realm education and documentation. He doesn't recall his life before MongoDB, but has been told he has previously served as an architect, software engineer, API designer, and curriculum design engineer. Caleb also loves teaching, rafting, wood working, and geology.

Parker Faucher | University Curriculum Engineer
Parker is a Curriculum Engineer on the Education team at MongoDB. Prior to joining MongoDB, he helped maintain a world class developer bootcamp that was offered in multiple universities. He is a self taught developer who loves being able to give back to the community that has helped him so much.

Daniel Curran | Senior Curriculum Engineer
Daniel is a Senior Curriculum Designer at MongoDB. Before joining MongoDB, he worked as an Instructional Designer and Content Developer specializing in technical content for a host of international clients. Daniel's goal is to remove obstacles so learners can feel confident on their journey to become masters of MongoDB.