C# driver version 1.4 released

355 views
Skip to first unread message

Robert Stam

unread,
Mar 27, 2012, 1:50:17 AM3/27/12
to mongod...@googlegroups.com, mongodb-...@googlegroups.com, mongodb...@googlegroups.com
Version 1.4 of the C# driver is now available.

The major feature of this release is support for LINQ queries. Some of the other changes (e.g. new IBsonSerializer methods) are also in support of the new LINQ implementation.

Note that the LINQ implementation has only been tested from C#. We plan to add unit tests for VB.NET soon and anticipate a 1.4.1 release to address any issues related to using LINQ from VB.NET as well as any issues that are reported by users of the 1.4 release.

There are a few changes that break backward compatibility, so be sure to read the release notes before upgrading.

The release notes are available online at:


The C# driver is available for download in source or binary form (.msi installer or .zip file) from:


Note: if you download the zip file, depending on how you unzip the file you may need to "Unblock" the help file. You can do so by right clicking on the "CSharpDriverDocs.chm" file and selecting Properties, and then clicking on the "Unblock" button. You will need to "Unblock" the help file if you see the message "Navigation to webpage was canceled" where the help text would normally appear.

The C# driver will also be available soon on NuGet at:


Online documentation is available at:


The online API reference documentation is available at:


Note: the online and API reference documentation will be updated to v1.4 over the next several days. The new LINQ tutorial will take a bit longer to write.

Bugs and suggestions can be submitted at:


Questions can be posted on the mongodb-user group:


We monitor this group and will be happy to answer any questions you post here.

Robert Stam and Sridhar Nanjundeswaran
10gen

胡 伟敏

unread,
Mar 27, 2012, 3:53:05 AM3/27/12
to mongod...@googlegroups.com, mongodb-...@googlegroups.com, mongodb...@googlegroups.com

I use the four method or property....
AdminDatabase, GetAdminDatabase, RunAdminCommand, and RunAdminCommandAs.


在 2012年3月27日星期二UTC+8下午1时50分17秒,Robert Stam写道:

Robert Stam

unread,
Mar 27, 2012, 10:30:03 AM3/27/12
to mongod...@googlegroups.com
Simply replace calls to:

server.AdminDatabase with server.GetDatabase("admin")
server.GetAdminDatabase(...) with server.GetDatabase("admin", ...)
server.RunAdminCommand(command) with server.GetDatabase("admin").RunCommand(command)
server.RunAdminCommandAs<T>(command) with server.GetDatabase("admin").RunCommandAs<T>(command)

as mentioned in the release notes adding new overloads of all these methods to handle admin credentials was just getting out of hand.

--
You received this message because you are subscribed to the Google Groups "mongodb-user" group.
To view this discussion on the web visit https://groups.google.com/d/msg/mongodb-user/-/kJgjnYx4TlIJ.
To post to this group, send email to mongod...@googlegroups.com.
To unsubscribe from this group, send email to mongodb-user...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/mongodb-user?hl=en.

Reply all
Reply to author
Forward
0 new messages