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
Video

Atlas Full Text Search in a C# Blazor Application

Written tutorial → https://mdb.link/meszOxcR2o0-tutorial" target="_blank" rel="noreferrer">https://mdb.link/meszOxcR2o0-tutorial Imagine being presented with a website with a multiple pages of info and not being able to search for what you want. Instead, you’re forced to sift through the results with no end in sight. That is, of course, the last thing you want for yourself or your users. So in this video, we’ll see how you can easily implement autocomplete search in your .NET Blazor application using MongoDB Atlas Search. 📚 RESOURCES 📚 GitHub Repo → https://github.com/mongodb-developer/seesharpmovies Setting up your M0 Cluster - https://mdb.link/meszOxcR2o0-getting-started" target="_blank" rel="noreferrer">https://mdb.link/meszOxcR2o0-getting-started Getting your connection string → https://mdb.link/meszOxcR2o0-connection-string" target="_blank" rel="noreferrer">https://mdb.link/meszOxcR2o0-connection-string Atlas Search Docs → https://mdb.link/meszOxcR2o0-search" target="_blank" rel="noreferrer">https://mdb.link/meszOxcR2o0-search Loading Sample Dataset → https://mdb.link/meszOxcR2o0-data" target="_blank" rel="noreferrer">https://mdb.link/meszOxcR2o0-data GitHub Gist with code snippets → https://gist.github.com/LuceCarter/fa43ea5a4c28c43aa27d5e54f88079f4 ✅ Get help on our Community Forums → https://mdb.link/meszOxcR2o0- 💬 Connect with Luce: Twitter: / lucecarter1 ⏱️ Timestamps ⏱️ 00:00 - Intro 00:26 - Prerequisites 01:15 - Creating Atlas Search Index 04:12 - Implementing the backend functionality 07:02 - Implementing the frontend functionality 11:14 - Testing the application 13:09 - Outro Subscribe to MongoDB YouTube→ https://mdb.link/subscribe
MongoDB thumbnail image
Play Button

Feb 28, 2024
Tutorial

MongoDB Atlas Search with .NET Blazor for Full-Text Search

In this tutorial, learn how to add Atlas Search functionality with autocomplete and fuzzy search to a .NET Blazor application.
MongoDB thumbnail image

Feb 01, 2024
Luce Carter
Tutorial

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

MongoDB thumbnail image

Jan 24, 2024
Luce Carter
Tutorial

Interact with MongoDB Atlas in an AWS Lambda Function Using C#

In this tutorial, we'll see how to create a serverless function using the C# programming language and that function will connect to and query MongoDB Atlas in an efficient manner.
MongoDB thumbnail image

Jan 23, 2024
Hubert Nguyen
Video

Getting Started with the new MongoDB Provider for EF Core

Written tutorial → https://mdb.link/ghJUEhbnCFE-languages At .local London in October 2023, we announced the availability, in preview, of the new MongoDB Providers for EF Core. This has been a popular request in the community. In this video, we will take you through creating an ASP.NET MVC app with CRUD and change tracking using the new provider, all for free using MongoDB Atlas. 📚 RESOURCES 📚 GitHub Repo → https://trymongodb.com/48gKLJp Getting your connection string → https://mdb.link/ghJUEhbnCFE-connectionstring MongoDB Provider Announcement → https://mdb.link/ghJUEhbnCFE-entityframework ✅ Sign-up for a free cluster at → https://mdb.link/ghJUEhbnCFE-free ✅ Get help on our Community Forums → https://mdb.link/ghJUEhbnCFE-community 💬 Connect with Luce: Twitter: https://twitter.com/lucecarter1 ⏱️ Timestamps ⏱️ 00:00 - Intro 00:30 - Prerequisites 01:15 - Create the project 02:23 - Add the driver 03:21 - Add the models 06:25 - Setup EF Core 11:18 - Create the services 21:26 - Add the view models 24:47 - Create the controllers 32:39 - Create the views 43:14 - Test the application 47:00 - Outro Subscribe to our channel → https://mdb.link/subscribe #mongodb #dotnet #csharp #efcore
MongoDB thumbnail image
Play Button

Dec 15, 2023
Video

Announcing MongoDB Provider for Entity Framework Core

Join us this week on MongoDB TV as host Nic Raboy is joined by EP experts James Kovacs from MongoDB, Damien Guard from Intracia, Arthur Vickers and Shay Rojanksy from Microsoft as they delve into the exciting journey of the Entity Provider's adoption within the C# developer community. This groundbreaking development promises to streamline the integration of MongoDB with existing technologies, significantly lowering the learning curve and broadening MongoDB's presence in the developer marketplace. Learn More → https://mdb.link/Entity-Framework-Provider-doc Official MongoDB Entity Framework Core Provider → https://mdb.link/EntityFrameworkCore
MongoDB thumbnail image
Play Button

Nov 06, 2023
Video

IoT on MongoDB!! Hey.. that rhymes 😅 #IoT #tech

#IoT #hands-on project. We will write #firmware from scratch for #MCUs using #MicroPython and collect data with #CXX and use time series on #MongoDB Atlas
MongoDB thumbnail image
Play Button

Oct 31, 2023
Video

Interact with MongoDB Atlas and AWS Lambda Functions

Learn more → https://mdb.link/atlas-in-aws-function-csharp Get started with C Sharp → https://mdb.link/start-c-sharp The MongoDB Atlas Navigation has been enhanced to provide a more intuitive and streamlined experience. Discover the updates here: https://mdb.link/AtlasUpdate In this week’s AWS Cloud Connect, Hubert Nguyen, Sr. Developer Advocate at MongoDB, shares practical insights on building a C# AWS Lambda serverless function with MongoDB Atlas. He demonstrates efficient techniques for creating and sharing a MongoDB client and connecting multiple class instances. For those interested in serverless architecture and AWS Lambda, MongoDB Atlas offers flexibility and ease of use.
MongoDB thumbnail image
Play Button

Sep 04, 2023
Code Example
SNIPPET

Saving Data in Unity3D Using SQLite

Persisting data is an important part of most games. Unity offers only a limited set of solutions, which means we have to look around for other options as well. In this tutorial series, we will explore the options given to us by Unity and third-party libraries.
MongoDB thumbnail image

Jun 09, 2023
Dominic Frei
Tutorial

Joining Collections in MongoDB with .NET Core and an Aggregation Pipeline

Learn how to use the MongoDB aggregation pipeline to create stages that will join documents and collections in a .NET Core application.
MongoDB thumbnail image

Jun 09, 2023
Nic Raboy