MongoDB with C# and .NET 9 — 2/16: Project Setup and Mapping a Class as a Document

Giovanni Pace

Description

Let's create the .NET 9 console project, install the MongoDB driver, and map the first C# class as a MongoDB document using BsonId and BsonElement attributes to control field names.