EventGet 50% off your ticket to MongoDB.local NYC on May 2. Use code Web50! Learn more >

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

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
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
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
JsonSchemaCreator.cs
EncryptedClient.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
Pair of hands typing on a laptop

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.

Get started with MongoDB for C#

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