Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 114 lines (91 sloc) 3.929 kb
a91af6fe »
2014-03-21 rewrote the readme.
1 MongoDB C# Driver
2 =================
5104064f »
2010-10-24 Fixed typos in README URLs.
3
a91af6fe »
2014-03-21 rewrote the readme.
4 You can get the latest stable release from the [official Nuget.org feed](http://www.nuget.org/packages/mongocsharpdriver) or from our [github releases page](https://github.com/mongodb/mongo-csharp-driver/releases).
cc3abc46 »
2010-10-24 Added README.md.
5
a91af6fe »
2014-03-21 rewrote the readme.
6 If you'd like to work with the bleeding edge, you can use our [build feed](https://www.myget.org/gallery/mongocsharpdriverbuild). Packages on this feed are pre-release and, while they've passed all our tests, are not yet ready for production.
cc3abc46 »
2010-10-24 Added README.md.
7
a91af6fe »
2014-03-21 rewrote the readme.
8 Build Status
9 ------------
cc3abc46 »
2010-10-24 Added README.md.
10
a91af6fe »
2014-03-21 rewrote the readme.
11 [![Build Status](http://jenkins.bci.10gen.cc:8080/buildStatus/icon?job=mongo-csharp-driver-1.x)](http://jenkins.bci.10gen.cc:8080/job/mongo-csharp-driver-1.x/)
5104064f »
2010-10-24 Fixed typos in README URLs.
12
a91af6fe »
2014-03-21 rewrote the readme.
13 Getting Started
14 ---------------
cc3abc46 »
2010-10-24 Added README.md.
15
a91af6fe »
2014-03-21 rewrote the readme.
16 ### Untyped Documents
17 ```C#
18 using MongoDB.Bson;
19 using MongoDB.Driver;
20 ```
cc3abc46 »
2010-10-24 Added README.md.
21
a91af6fe »
2014-03-21 rewrote the readme.
22 ```C#
23 var client = new MongoClient("mongodb://localhost:27017");
24 var server = client.GetServer();
25 var database = server.GetDatabase("foo");
26 var collection = database.GetCollection("bar");
27
28 collection.Insert(new BsonDocument("Name", "Jack"));
29
30 foreach(var document in collection.FindAll())
31 {
32 Console.WriteLine(document["Name"]);
33 }
34 ```
35
36 ### Typed Documents
37
38 ```C#
39 using MongoDB.Bson;
40 using MongoDB.Driver;
41 ```
42
43 ```C#
44 public class Person
45 {
46 public ObjectId Id { get; set; }
47 public string Name { get; set; }
48 }
49 ```
50
51 ```C#
52 var client = new MongoClient("mongodb://localhost:27017");
53 var server = client.GetServer();
54 var database = server.GetDatabase("foo");
55 var collection = database.GetCollection<Person>("bar");
56
57 collection.Insert(new Person { Name = "Jack" });
58
59 foreach(var person in collection.FindAll())
60 {
61 Console.WriteLine(person.Name);
62 }
63 ```
64
65 Documentation
66 -------------
67 * [MongoDB](http://www.mongodb.org/)
68 * [Documentation](http://www.mongodb.org/display/DOCS/CSharp+Language+Center)
69 * [Api Documentation](http://api.mongodb.org/csharp/)
70
71 Questions/Bug Reports
72 ---------------------
73 * [Discussion Forum](http://groups.google.com/group/mongodb-user)
74 * [Stack Overflow](http://stackoverflow.com/questions/tagged/mongodb)
75 * [Jira](https://jira.mongodb.org/browse/CSHARP)
76 * [Jabbr](https://jabbr.net/#/rooms/mongodb)
77
78 If you’ve identified a security vulnerability in a driver or any other MongoDB project, please report it according to the [instructions here](http://docs.mongodb.org/manual/tutorial/create-a-vulnerability-report).
79
80 Contributing
81 ------------
82
83 Please see our [guidelines](CONTRIBUTING.md) for contributing to the driver.
cc3abc46 »
2010-10-24 Added README.md.
84
85 ### Maintainers:
c32ab672 »
2014-02-18 fixing up some extra 10gen related text.
86 * Robert Stam robert@mongodb.com
87 * Craig Wilson craig.wilson@mongodb.com
cc3abc46 »
2010-10-24 Added README.md.
88
a91af6fe »
2014-03-21 rewrote the readme.
89 ### Contributors (in alphabetical order):
cc4dc193 »
2011-06-14 Added Bit Diffusion Limited to list of contributors.
90 * Bit Diffusion Limited code@bitdiff.com
b5cefe92 »
2014-02-17 CSHARP-753: Added Pete Smith to the contributors list.
91 * Alex Brown https://github.com/alexjamesbrown
cc4dc193 »
2011-06-14 Added Bit Diffusion Limited to list of contributors.
92 * Justin Dearing zippy1981@gmail.com
abebdee9 »
2014-02-17 added Dan DeBilt to contributors
93 * Dan DeBilt dan.debilt@gmail.com
cc4dc193 »
2011-06-14 Added Bit Diffusion Limited to list of contributors.
94 * Teun Duynstee teun@duynstee.com
b5cefe92 »
2014-02-17 CSHARP-753: Added Pete Smith to the contributors list.
95 * Einar Egilsson https://github.com/einaregilsson
cc4dc193 »
2011-06-14 Added Bit Diffusion Limited to list of contributors.
96 * Ken Egozi mail@kenegozi.com
25882b0e »
2013-02-10 Added Daniel Goldman to the list of contributors in the README.
97 * Daniel Goldman daniel@stackwave.com
cc4dc193 »
2011-06-14 Added Bit Diffusion Limited to list of contributors.
98 * Simon Green simon@captaincodeman.com
566c6b56 »
2012-11-02 CSHARP-610: merged pull request 134 and added more unit tests.
99 * Nik Kolev nkolev@gmail.com
40e69fe1 »
2012-10-09 CSHARP-594: Fixed similar issue in MapToBsonValue and added unit tests.
100 * Oleg Kosmakov kosmakoff@gmail.com
befe38a7 »
2011-08-04 Merged CSHARP-297 pull request from Brian Knight with minor tweak. Ad…
101 * Brian Knight brianknight10@gmail.com
cc4dc193 »
2011-06-14 Added Bit Diffusion Limited to list of contributors.
102 * Richard Kreuter richard@10gen.com
103 * Kevin Lewis kevin.l.lewis@gmail.com
92be4a63 »
2011-07-26 Implemented CSHARP-286. Added support for dropTarget to RenameCollect…
104 * Dow Liu redforks@gmail.com
abebdee9 »
2014-02-17 added Dan DeBilt to contributors
105 * Alex Lyman mail.alex.lyman@gmail.com
a87265e5 »
2011-12-19 Merging Alexander Nagy's pull request for CSHARP-366 and CSHARP-367 w…
106 * Alexander Nagy optimiz3@gmail.com
c32ab672 »
2014-02-18 fixing up some extra 10gen related text.
107 * Sridhar Nanjundeswaran https://github.com/sridharn
cc4dc193 »
2011-06-14 Added Bit Diffusion Limited to list of contributors.
108 * Andrew Rondeau github@andrewrondeau.com
109 * Ed Rooth edward.rooth@wallstreetjapan.com
b5cefe92 »
2014-02-17 CSHARP-753: Added Pete Smith to the contributors list.
110 * Pete Smith roysvork@gmail.com
659b2e45 »
2012-11-10 CSHARP-629: add support for ToLowerInvariant and ToUpperInvariant in …
111 * staywellandy https://github.com/staywellandy
b5cefe92 »
2014-02-17 CSHARP-753: Added Pete Smith to the contributors list.
112 * Testo test1@doramail.com
9cada162 »
2011-02-15 Added contributors to README.md.
113
bc5e98ed »
2012-12-10 added Einar to contributor list.
114 If you have contributed and we have neglected to add you to this list please contact one of the maintainers to be added to the list (with apologies).
Something went wrong with that request. Please try again.