C# Driver Version 1.7 Release Notes
===================================
This is a major release.
This release has two major goals: to standardize on the name WriteConcern and
to make Acknowledged the new default WriteConcern.
The following classes are being replaced:
- SafeMode is replaced by WriteConcern
- SafeModeResult is replaced by WriteConcernResult
- MongoSafeModeException is replaced by WriteConcernException
To make Acknowledged the new default WriteConcern without breaking any existing
code that might rely on the old default we are introducing a new root class
called MongoClient.
An online version of these release notes is available at:
https://github.com/mongodb/mongo-csharp-driver/blob/master/Release%20Notes/Release%20Notes%20v1.7.md
File by file change logs are available at:
https://github.com/mongodb/mongo-csharp-driver/blob/master/Release%20Notes/Change%20Log%20v1.7-Bson.txt
https://github.com/mongodb/mongo-csharp-driver/blob/master/Release%20Notes/Change%20Log%20v1.7-Driver.txt
The full list of JIRA issues resolved in this release is available at:
https://jira.mongodb.org/secure/IssueNavigator.jspa?mode=hide&requestId=12915
Documentation on the C# driver can be found at:
http://www.mongodb.org/display/DOCS/CSharp+Language+Center
http://api.mongodb.org/csharp/current/
Standardizing on WriteConcern instead of SafeMode
-------------------------------------------------
Some MongoDB drivers (the C# driver included) have used SafeMode as the name
for the class which determines whether writes to the database are checked for
errors. We are now standardizing across all drivers to use the name WriteConcern
instead of SafeMode. The C# driver will continue to support the SafeMode class
for a few releases but eventually it will be removed.
You should start using the new WriteConcern class, but we have also provided
an implicit conversion from SafeMode to WriteConcern so any code that passes
a SafeMode argument to a method taking a WriteConcern parameter will still
compile and work.
New MongoClient class and default WriteConcern
----------------------------------------------
The new default WriteConcern is Acknowledged, but we have introduced the new
default in a way that doesn't alter the behavior of existing programs. We
are introducing a new root class called MongoClient that defaults the
WriteConcern to Acknowledged. The existing MongoServer Create methods are
deprecated but when used continue to default to a WriteConcern of Unacknowledged.
In prior releases you would start using the C# driver with code like this:
var connectionString = "mongodb://localhost";
var server = MongoServer.Create(connectionString); // deprecated
var database = server.GetDatabase("test"); // WriteConcern defaulted to Unacknowledged
The new way to start using the C# driver is:
var connectionString = "mongodb://localhost";
var client = new MongoClient(connectionString);
var server = client.GetServer();
var database = server.GetDatabase("test"); // WriteConcern defaulted to Acknowledged
If you use the old way to start using the driver the default WriteConcern will
be Unacknowledged, but if you use the new way (using MongoClient) the default
WriteConcern will be Acknowledged.
没有合适的资源?快使用搜索试试~ 我知道了~
mongodb,c#存取图片
共47个文件
cs:18个
aspx:6个
config:4个
5星 · 超过95%的资源 需积分: 11 24 下载量 125 浏览量
2015-03-14
10:37:16
上传
评论 1
收藏 815KB RAR 举报
温馨提示
小demo,需要自己先安装mongodb http://blog.csdn.net/xue251248603/article/details/44243733
资源推荐
资源详情
资源评论
收起资源包目录
MongodbTest.rar (47个子文件)
MongodbTest
MongodbTest.sln 923B
MongodbTest
bin
Site.Master.cs 343B
readMongodbPic.ashx.cs 923B
Default.aspx 993B
Account
ChangePassword.aspx.cs 349B
Register.aspx 6KB
ChangePassword.aspx.designer.cs 839B
Web.config 347B
Register.aspx.cs 911B
ChangePasswordSuccess.aspx.cs 356B
ChangePasswordSuccess.aspx 508B
ChangePasswordSuccess.aspx.designer.cs 473B
Register.aspx.designer.cs 1KB
Login.aspx.cs 469B
Login.aspx 3KB
ChangePassword.aspx 4KB
Login.aspx.designer.cs 1KB
Site.Master.designer.cs 3KB
Web.config 2KB
Styles
Site.css 4KB
MongodbTest.csproj.user 1KB
readMongodbPic.ashx 107B
obj
Debug
Web.Debug.config 1KB
About.aspx 459B
RWMongodbPic.cs 2KB
Default.aspx.designer.cs 2KB
App_Data
About.aspx.cs 332B
Web.Release.config 1KB
Global.asax.cs 1KB
Site.Master 2KB
About.aspx.designer.cs 449B
Global.asax 95B
Scripts
jquery-1.4.1.js 165KB
jquery-1.4.1-vsdoc.js 234KB
jquery-1.4.1.min.js 70KB
MongodbTest.csproj 7KB
Properties
AssemblyInfo.cs 1KB
Default.aspx.cs 2KB
CSharpDriver
MongoDB.Bson.xml 677KB
MongoDB.Driver.pdb 1.15MB
License.txt 596B
MongoDB.Driver.XML 844KB
Release Notes v1.7.txt 3KB
MongoDB.Bson.dll 294KB
MongoDB.Bson.pdb 1016KB
MongoDB.Driver.dll 335KB
MongodbTest.suo 30KB
共 47 条
- 1
资源评论
- wuqi19892015-08-12让我有了参考,解决了自己的问题
- qq_312227572015-11-04问题已解决
xue251248603
- 粉丝: 41
- 资源: 41
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功