Permalink
Fetching contributors…
Cannot retrieve contributors at this time
240 lines (183 sloc) 5.54 KB
.. _csharp-language-center:
==========================
C# and .NET MongoDB Driver
==========================
.. default-domain:: mongodb
.. contents:: On this page
:local:
:backlinks: none
:depth: 1
:class: twocols
The official MongoDB C#/.NET Driver provides asynchronous interaction
with MongoDB. For the official MongoDB C#/.NET reference, see:
- `MongoDB C#/.NET Documentation
<http://mongodb.github.io/mongo-csharp-driver/?jmp=docs>`_
- `MongoDB C# API Documentation
<http://api.mongodb.com/csharp/current?jmp=docs>`_.
Driver Features
---------------
MongoDB Driver
An updated .NET driver offering a full asynchronous stack. For
documentation on the update .NET driver, see `MongoDB C#/.NET Driver
documentation <http://mongodb.github.io/mongo-csharp-driver/2.2/?jmp=docs>`_.
BSON Library
A standalone BSON library with a serialization infrastructure that
you can use to build high-performance serializers. For documentation
on the BSON library, see `BSON Reference
<http://mongodb.github.io/mongo-csharp-driver/2.2/reference/bson/?jmp=docs>`_.
Core Library
A new core library upon which MongoDB .NET Driver is built. Users
can use the new core library to build alternative or experimental
high-level APIs. For documentation on the core library, see `Driver
Core <http://mongodb.github.io/mongo-csharp-driver/2.2/reference/driver_core/?jmp=docs>`_
Download/Upgrade
----------------
The recommended way to download the driver is to use ``nuget``.
For more information, see `Getting Started
<http://mongodb.github.io/mongo-csharp-driver/2.2/getting_started?jmp=docs>`_.
If upgrading from an earlier version of the C#/.NET driver, see also
`What's New
<http://mongodb.github.io/mongo-csharp-driver/2.2/upgrading/?jmp=docs>`_.
Compatibility
-------------
MongoDB Compatibility
~~~~~~~~~~~~~~~~~~~~~
.. include:: /includes/extracts/csharp-driver-compatibility-matrix-mongodb.rst
.. list-table::
:header-rows: 1
:stub-columns: 1
:class: compatibility
* - C#/.NET Driver Version
- MongoDB 2.6
- MongoDB 3.0
- MongoDB 3.2
- MongoDB 3.4
- MongoDB 3.6
* - Version 2.5
- |checkmark|
- |checkmark|
- |checkmark|
- |checkmark|
- |checkmark|
* - Version 2.4
- |checkmark|
- |checkmark|
- |checkmark|
- |checkmark|
-
* - Version 2.3
- |checkmark|
- |checkmark|
- |checkmark|
-
-
.. include:: /includes/extracts/csharp-driver-compatibility-full-mongodb.rst
.. include:: /includes/older-server-versions-unsupported.rst
.NET Language Compatibility
~~~~~~~~~~~~~~~~~~~~~~~~~~~
.. include:: /includes/extracts/csharp-driver-compatibility-matrix-language.rst
.. list-table::
:header-rows: 1
:stub-columns: 1
:class: compatibility-large
* - Driver Version
- .NET 3.5
- .NET 4.0
- .NET 4.5
- .NET 4.6
- .NET Core 1.0
- .NET Core 1.1
- .NET Core 2.0
* - Version 2.5
-
-
- |checkmark|
- |checkmark|
- |checkmark|
- |checkmark|
- |checkmark|
* - Version 2.4
-
-
- |checkmark|
- |checkmark|
- |checkmark|
- |checkmark|
- |checkmark|
* - Version 2.3
-
-
- |checkmark|
- |checkmark|
- |checkmark|
- |checkmark|
- |checkmark|
* - Version 2.2
-
-
- |checkmark|
- |checkmark|
-
-
-
* - Version 2.0
-
-
- |checkmark|
- |checkmark|
-
-
-
* - Version 1.11
- |checkmark|
- |checkmark|
- |checkmark|
- |checkmark|
-
-
-
* - Version 1.10
- |checkmark|
- |checkmark|
- |checkmark|
- |checkmark|
-
-
-
.. include:: /includes/extracts/csharp-driver-compatibility-full-language.rst
.. include:: /includes/unicode-checkmark.rst
Visual Studio Support
~~~~~~~~~~~~~~~~~~~~~
The current version of the C# Driver has been built and tested using
- Visual Studio 2017
Presentations
-------------
- `LINQ support in C#/.NET driver (slide deck)
<https://speakerdeck.com/mongodb/dot-net-driver-robert-stam-10gen>`_
(Aug 2012)
- `What's new in the .NET driver (slide deck)
<https://speakerdeck.com/mongodb/whats-new-in-the-net-driver>`_ (Jul
2012)
- `C# Development (conference videos)
<https://www.mongodb.com/presentations?application=All&programming_lang=
46&speaker=&event=&language=All?jmp=docs>`_
Community Articles
------------------
- `How to MongoDB with C#
<https://blog.oz-code.com/how-to-mongodb-in-c-part-1/>`_
- `A MongoDB Tutorial using C# and ASP.NET MVC
<http://www.joe-stevens.com/2011/10/02/a-mongodb-tutorial-using-c-and-asp-net-mvc/>`_
- `Experimenting with MongoDB from C#
<http://odetocode.com/Blogs/scott/archive/2009/10/13/experimenting-with-mongodb-from-c.aspx>`_
- `Introduction to MongoDB for .NET
<http://www.highoncoding.com/Articles/678_Introduction_to_MongoDb_Database.aspx>`_
- `Implementing a Blog Using ASP.NET MVC and MongoDB
<http://highoncoding.com/Articles/686_Implementing_Blog_Using_ASP_NET_MVC_and_MongoDb.aspx>`_
- `Intro Article using a Post and Comments Example
<http://www.codeproject.com/KB/database/MongoDBCS.aspx>`_
- `Using the Official .NET driver from PowerShell
<http://www.justaprogrammer.net/2011/05/14/using-mongodb-in-powershell>`_
- `Tutorial MongoDB con ASP.NET MVC - Ejemplo Práctico
<http://geeks.ms/blogs/gperez/archive/2011/12/02/tutorial-mongodb-con-asp-net-mvc-ejemplo-pr-225-ctico.aspx>`_
- `A Quick MongoDB Repository
<http://selfdocumenting.net/a-quick-mongodb-repository>`_