Voyage AI joins MongoDB to power more accurate and trustworthy AI applications on Atlas.

Explore Developer Center's New Chatbot! MongoDB AI Chatbot can be accessed at the top of your navigation to answer all your MongoDB questions.

MongoDB Developer
MongoDB Developer Center
chevron-right
Developer Topics
chevron-right

C#

plus Follow
Sign in to follow topics
A general-purpose, multi-paradigm programming language. C# is a particularly useful language to learn for developing apps based on the .NET framework

Featured

Quickstart

Build Your First .NET Core Application with MongoDB Atlas

Learn how to quickly and easily start building .NET Core applications that interact with MongoDB Atlas for create, read, update, and delete (CRUD) operations....
MongoDB thumbnail image
.NETC#

Jun 04, 2024 | 6 min read
Nic Raboy
News & Announcements

Introducing the MongoDB Analyzer for .NET


Aug 05, 2024 | 6 min read
Tutorial

MongoDB Provider for EF Core Tutorial: Building an App with CRUD and Change Tracking

MongoDB thumbnail image

Jan 24, 2024 | 18 min read
C# Articles
All C# Articles
Article

The C# Driver Version 3.0 is Here! What Do You Need to Know?

MongoDB thumbnail image

Nov 04, 2024 | 5 min read
Article

MongoDB Provider for EF Core: The Latest Updates

MongoDB thumbnail image

Aug 29, 2024 | 6 min read
Article

How to Set Up MongoDB Class Maps for C# for Optimal Query Performance and Storage Size

MongoDB thumbnail image

Aug 05, 2024 | 8 min read
All C# Articles
C# Tutorials
All C# Tutorials
Tutorial

Building an AI Agent With Semantic Kernel, C#, OpenAI, and MongoDB Atlas

MongoDB thumbnail image

Jan 14, 2025 | 13 min read
Tutorial

Handling Complex Aggregation Pipelines With C#

MongoDB thumbnail image

Nov 15, 2024 | 5 min read
Tutorial

MongoDB C# Aggregation Pipeline Basics

MongoDB thumbnail image

Oct 11, 2024 | 5 min read
C# Videos
All C# Videos
Video

How to Build an AI Agent with Semantic Kernel, MongoDB Atlas, C# and OpenAI

MongoDB thumbnail image
Play Button

Mar 19, 2025 | 23 min
Video

Exploring the MongoDB EF Core Provider for .NET with Kev Smith

MongoDB thumbnail image
Play Button

Nov 29, 2024 | 61 min
Video

Did you know that EF now has support for MongoDB?

MongoDB thumbnail image
Play Button

Sep 11, 2024 | 1 min
All C# Content
search
  • Latestcheck
  • Highest Rated
Tutorial

MongoDB Geospatial Queries in C#

If you've ever glanced at a map to find the closest lunch spots to you, you've most likely used a geospatial query under the hood! In this tutorial, we'll learn how to store geospatial data in MongoDB Atlas and how to work with geospatial queries in the MongoDB C# driver.
MongoDB thumbnail image

Jun 09, 2023
Adrienne Tacke
Tutorial

Designing and Developing 2D Game Levels with Unity and C#

Learn how to use Unity tilemaps to create complex 2D worlds for your game.
MongoDB thumbnail image

Jun 09, 2023
Nic Raboy
Tutorial

Getting Started with the Realm SDK for Unity

Learn how to get started with the Realm SDK for Unity for data persistance in your game.
MongoDB thumbnail image

Jun 09, 2023
Nic Raboy
Code Example

How to Use MongoDB Client-Side Field Level Encryption (CSFLE) with C#

Learn how to use MongoDB client-side field level encryption (CSFLE) with a C# application.
MongoDB thumbnail image

Jun 09, 2023
Adrienne Tacke
Quickstart

MongoDB & C Sharp: CRUD Operations Tutorial

Learn how to perform CRUD operations using C Sharp for MongoDB databases.
MongoDB thumbnail image

Jun 09, 2023
Ken W. Alger
Tutorial

Integrate Azure Key Vault with MongoDB Client-Side Field Level Encryption

Learn how to use Azure Key Vault as your remote key management system with MongoDB's client-side field level encryption, step-by-step.
MongoDB thumbnail image

Jun 09, 2023
Adrienne Tacke
Video

Interact with a GraphQL API from a .NET Core Application

✅ Sign-up for a free cluster at: https://mdb.link/free-5rmp0ZVPhCM ✅ Get help on our Community Forums: https://mdb.link/community-5rmp0ZVPhCM Need to query and consume data from a GraphQL API using C# or .NET? In this tutorial we'll see how to create a very basic GraphQL API using MongoDB without writing any GraphQL backend code. Then we'll see how to query it like any other GraphQL API, but using simple .NET code. 📚 For readers, here is a written version: https://trymongodb.com/3A7WDOq ⏱️ Timestamps ⏱️ 0:00 Intro 0:25 MongoDB Atlas and the Example Data Set 1:30 Creating and Configuring a GraphQL with MongoDB App Services 5:03 Consuming a GraphQL API with .NET Core 13:49 Defining Access Rules for MongoDB App Services 15:03 Reviewing the GraphQL with .NET Core and MongoDB Project --- Subscribe to MongoDB ➡️ https://bit.ly/3bpg1Z1 #mongodb #graphql #csharp
MongoDB thumbnail image
Play Button

Aug 30, 2022
Video

How to use the MongoDB .NET Analyzer to Help with LINQ Queries in C#

✅ Sign-up for a free cluster at: https://bit.ly/mongodb-free ✅ Get help on our Community Forums: https://bit.ly/mongodb-community Learn how to use the MongoDB Analyzer for .NET and see how it can help you become more proficient at producing queries and aggregation pipelines in this video by Nic Raboy. 📚 For readers, here are written versions: https://trymongodb.com/3JWKujV ⏱️ Timestamps ⏱️ 0:00 Intro 0:34 Prerequisites 1:10 Exploring a .NET Application in Visual Studio 2:12 Installing the MongoDB Analyzer for C# 3:10 Analyzing a MongoDB Builder 5:45 Analyzing a MongoDB LINQ Query 7:16 Identifying Invalid Operators and Syntax 8:24 Outro --- Subscribe to MongoDB ➡️ https://bit.ly/3bpg1Z1 #mongodb #linq #csharp
MongoDB thumbnail image
Play Button

Aug 09, 2022
Video

Build a Full C# App Tutorial

In this full fledged video tutorial, Tim Corey teaches you how to create a C# application end to end. Suitable for the total beginner at C#.
MongoDB thumbnail image
Play Button

Dec 06, 2021
Video

Connecting to MongoDB from C# Applications

In this community created tutorial, learn how to connect to MongoDB Atlas from your C# application. Sign-up for a free cluster at: https://bit.ly/mongodb-free
MongoDB thumbnail image
Play Button

Dec 06, 2021