Blog
{Blog}  See what’s new with MongoDB 6.0 — and why you’ll want to upgrade today >>

MongoDB Language Series

MongoDB: The developer data platform for C#

Get the versatility and flexibility of MongoDB Atlas with the familiarity of C#. Accelerate development with a first-class developer experience.
Try MongoDB
Learn more
atlas_query_api
Write strongly-typed queries natively
Construct queries using idiomatic builders—no need to learn a new query language. MongoDB supports LINQ operators, so that you can get the data you need with the syntax you know.
Learn more

MongoDB Atlas
+ C# in action

Learn how you can deploy key MongoDB Atlas features—from aggregation pipelines to data encryption—using C# syntax. Helpful code snippets are included for easy copy-and-paste.
Try Free
Connect to MongoDB Atlas with the C# Driver
Use the officially supported MongoDB C# driver to connect to your MongoDB Atlas cluster and start querying data instantly.
MongoDB C# Driver
Write aggregation pipelines in LINQ
Transform and process your data with MongoDB’s modular, multi-stage aggregation framework. Easily customize and configure your data analysis using familiar LINQ expressions and syntax.
LINQ
Programmatically encrypt key data
Add an extra layer of security with client-side field level encryption (CSFLE). Enable CSFLE on the MongoClient and encrypt fields with a JSON schema, so sensitive data is never transmitted unencrypted nor seen unencrypted by the MongoDB server.
Client-side field level encryption
Connect to MongoDB Atlas with the C# Driver
Use the officially supported MongoDB C# driver to connect to your MongoDB Atlas cluster and start querying data instantly.
MongoDB C# Driver
Database.cs
Write aggregation pipelines in LINQ
Transform and process your data with MongoDB’s modular, multi-stage aggregation framework. Easily customize and configure your data analysis using familiar LINQ expressions and syntax.
LINQ
Database.cs
Programmatically encrypt key data
Add an extra layer of security with client-side field level encryption (CSFLE). Enable CSFLE on the MongoClient and encrypt fields with a JSON schema, so sensitive data is never transmitted unencrypted nor seen unencrypted by the MongoDB server.
Client-side field level encryption
Database.cs
Database.cs
Boost Developer Productivity with the MongoDB Analyzer for .NET
The MongoDB Analyzer for .NET improves productivity for C# developers by reducing the pain of debugging queries. It quickly identifies when unsupported Builders or LINQ expressions are being used in your applications, enabling you to identify and fix any errors prior to runtime.
Learn more

Resources for C# developers

Whether it’s mobile games or enterprise applications, MongoDB Atlas and Realm are ideal for C# applications for all use cases.
Learn about the MongoDB C# driver
Practice using the MongoDB C# driver with this interactive course, where you will create a sample backend for an ASP.NET app.
Learn more
text search
case study
Build a game with Unity and Realm
For a blast from the past, get the directions for building an old-school space shooter using Unity and Realm.
Read more

Get started with MongoDB for C#

From Atlas to Realm, the MongoDB application data platform is ideal for busy C# developers — regardless of what framework or tool you use.
Try Free
Questions? Talk to us
GET STARTED WITH ATLAS TODAY
  • Serverless backend
  • Bidirectional sync
  • Intuitive SDK
  • Idiomatic builders
  • Capable extensions
  • Thoughtful tools