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

Learn why MongoDB was selected as a leader in the 2024 Gartner® Magic Quadrant™
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

Dec 02, 2024 | 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

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
Video

What's New in the MongoDB Provider for EF Core?

MongoDB thumbnail image
Play Button

Jun 13, 2024 | 7 min
All C# Content
search
  • Latestcheck
  • Highest Rated
Tutorial

Saving Data in Unity3D Using PlayerPrefs

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

Sep 09, 2024
Dominic Frei
Tutorial

Sending and Requesting Data from MongoDB in a Unity Game

Learn how to interact with MongoDB from a Unity game with C# and the UnityWebRequest class.
MongoDB thumbnail image

Sep 09, 2024
Nic Raboy
Tutorial

Integrating MongoDB with TensorFlow and C#

Are you a C# newbie or guru and curious to know how Tensorflow works with MongoDB as the database? This tutorial is for you.
MongoDB thumbnail image

Sep 05, 2024
Folasayo Samuel Olayemi
Article

MongoDB Provider for EF Core: The Latest Updates

Learn more about the new features in the GA release of the MongoDB Provider for EF Core.
MongoDB thumbnail image

Aug 29, 2024
Luce Carter
Article

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

Starting out with MongoDB and C#? These tips will help you get your class maps right from the beginning to support your desired schema.
MongoDB thumbnail image

Aug 05, 2024
Markus Wildgruber
News & Announcements

Introducing the MongoDB Analyzer for .NET

Say hello to the MongoDB Analyzer for .NET. This tool translates your C# queries to their MongoDB Query API equivalent.
MongoDB thumbnail image

Aug 05, 2024
Tutorial

Query Your Data With ASP.NET Core, OData, and the MongoDB Entity Framework Core Provider

Learn how to easily add OData support to a new or existing ASP.NET Core project with the new EF Core Provider
MongoDB thumbnail image

Jul 08, 2024
Markus Wildgruber
Tutorial

Building a Space Shooter Game in Unity that Syncs with Realm and MongoDB Atlas

Learn how to build a space shooter game that synchronizes between clients and the cloud using MongoDB, Unity, and Atlas Device Sync.
MongoDB thumbnail image

Jun 26, 2024
Nic Raboy
Video

What's New in the MongoDB Provider for EF Core?

Written Article - https://mdb.link/AaRv8n044BE-arcticle Great news! The new Provider for EF Core is now GA and in this video, Developer Advocate Luce Carter will show you some of the exciting new features available now! RESOURCES - GitHub Repo - https://github.com/mongodb-developer/foodiefinder-csharp Provider Repo inc Roadmap - https://github.com/mongodb/mongo-efcore-provider Get help on our Community Forums - https://mdb.link/AaRv8n044BE-forums Connect with Luce: Twitter - @lucecarter1 Timestamps: 00:00 - Introduction 00:18 - Embedded Documents 01:30 - Detailed Logging 03:49 - BSON Attributes 05:05 - Value Converters
MongoDB thumbnail image
Play Button

Jun 13, 2024
Tutorial

Using LINQ to Query MongoDB in a .NET Core Application

Learn how to use LINQ to interact with MongoDB in a .NET Core application.
MongoDB thumbnail image

Jun 10, 2024
Nic Raboy