From the course: MongoDB C# Developer Associate Cert Prep

Unlock this course with a free trial

Join today to access over 24,900 courses taught by industry experts.

MongoDB CRUD operations in C# review

MongoDB CRUD operations in C# review - MongoDB Tutorial

From the course: MongoDB C# Developer Associate Cert Prep

MongoDB CRUD operations in C# review

- In this unit, you learned how BSON documents are expressed in C#, how to perform basic CRUD operations with builders in C#, and how to create a multi-document transaction. When we build a C# application that connects to MongoDB, we want to be able to interact with the data in that application. We want to use the data and make sure our operations are ACID-compliant. We started by discussing how BSON documents are represented in C# using classes and builders. Then we moved on to basic CRUD operations in C#. We learned how to insert documents by using insertOne and insertMany, query documents by using Find with FirstOrDefault and ToList, update documents by using updateOne and updateMany, delete documents by using deleteOne and deleteMany. Finally, you learned how to create a multi-document transaction with MongoDB in C#. Now that you can perform CRUD operations with your C# application, try implementing an aggregation…

Contents