Skip to content

Commit 4cf29c9

Browse files
author
Robert Stam
committed
Wrote change logs for 1.4.2. Edited some doc comments.
1 parent bf84f8d commit 4cf29c9

File tree

4 files changed

+106
-24
lines changed

4 files changed

+106
-24
lines changed

CSharpDriver-2010.sln

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,8 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Release Notes", "Release No
2424
Release Notes\Change Log v1.4-Driver.txt = Release Notes\Change Log v1.4-Driver.txt
2525
Release Notes\Change Log v1.4.1-Bson.txt = Release Notes\Change Log v1.4.1-Bson.txt
2626
Release Notes\Change Log v1.4.1-Driver.txt = Release Notes\Change Log v1.4.1-Driver.txt
27+
Release Notes\Change Log v1.4.2-Bson.txt = Release Notes\Change Log v1.4.2-Bson.txt
28+
Release Notes\Change Log v1.4.2-Driver.txt = Release Notes\Change Log v1.4.2-Driver.txt
2729
Release Notes\Release Notes v0.11.txt = Release Notes\Release Notes v0.11.txt
2830
Release Notes\Release Notes v0.7.txt = Release Notes\Release Notes v0.7.txt
2931
Release Notes\Release Notes v0.9.txt = Release Notes\Release Notes v0.9.txt

Driver/Builders/QueryBuilder.cs

Lines changed: 24 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ public static QueryConditionList All(string name, BsonArray values)
6262
/// Tests that the named array element contains all of the values (see $all).
6363
/// </summary>
6464
/// <param name="name">The name of the element to test.</param>
65-
/// <param name="values">The values to compare to.</param>
65+
/// <param name="values">The values to compare to (nulls are ignored).</param>
6666
/// <returns>The builder (so method calls can be chained).</returns>
6767
public static QueryConditionList All(string name, IEnumerable<BsonValue> values)
6868
{
@@ -81,7 +81,7 @@ public static QueryConditionList All(string name, IEnumerable<BsonValue> values)
8181
/// Tests that the named array element contains all of the values (see $all).
8282
/// </summary>
8383
/// <param name="name">The name of the element to test.</param>
84-
/// <param name="values">The values to compare to.</param>
84+
/// <param name="values">The values to compare to (nulls are ignored).</param>
8585
/// <returns>The builder (so method calls can be chained).</returns>
8686
public static QueryConditionList All(string name, params BsonValue[] values)
8787
{
@@ -242,7 +242,7 @@ public static QueryConditionList In(string name, BsonArray values)
242242
/// Tests that the value of the named element is equal to one of a list of values (see $in).
243243
/// </summary>
244244
/// <param name="name">The name of the element to test.</param>
245-
/// <param name="values">The values to compare to.</param>
245+
/// <param name="values">The values to compare to (nulls are ignored).</param>
246246
/// <returns>The builder (so method calls can be chained).</returns>
247247
public static QueryConditionList In(string name, IEnumerable<BsonValue> values)
248248
{
@@ -261,7 +261,7 @@ public static QueryConditionList In(string name, IEnumerable<BsonValue> values)
261261
/// Tests that the value of the named element is equal to one of a list of values (see $in).
262262
/// </summary>
263263
/// <param name="name">The name of the element to test.</param>
264-
/// <param name="values">The values to compare to.</param>
264+
/// <param name="values">The values to compare to (nulls are ignored).</param>
265265
/// <returns>The builder (so method calls can be chained).</returns>
266266
public static QueryConditionList In(string name, params BsonValue[] values)
267267
{
@@ -480,7 +480,7 @@ public static QueryConditionList NotIn(string name, BsonArray values)
480480
/// Tests that the value of the named element is not equal to any of a list of values (see $nin).
481481
/// </summary>
482482
/// <param name="name">The name of the element to test.</param>
483-
/// <param name="values">The values to compare to.</param>
483+
/// <param name="values">The values to compare to (nulls are ignored).</param>
484484
/// <returns>The builder (so method calls can be chained).</returns>
485485
public static QueryConditionList NotIn(string name, IEnumerable<BsonValue> values)
486486
{
@@ -499,7 +499,7 @@ public static QueryConditionList NotIn(string name, IEnumerable<BsonValue> value
499499
/// Tests that the value of the named element is not equal to any of a list of values (see $nin).
500500
/// </summary>
501501
/// <param name="name">The name of the element to test.</param>
502-
/// <param name="values">The values to compare to.</param>
502+
/// <param name="values">The values to compare to (nulls are ignored).</param>
503503
/// <returns>The builder (so method calls can be chained).</returns>
504504
public static QueryConditionList NotIn(string name, params BsonValue[] values)
505505
{
@@ -877,7 +877,7 @@ public QueryConditionList All(BsonArray values)
877877
/// <summary>
878878
/// Tests that the named array element contains all of the values (see $all).
879879
/// </summary>
880-
/// <param name="values">The values to compare to.</param>
880+
/// <param name="values">The values to compare to (nulls are ignored).</param>
881881
/// <returns>The builder (so method calls can be chained).</returns>
882882
public QueryConditionList All(IEnumerable<BsonValue> values)
883883
{
@@ -892,7 +892,7 @@ public QueryConditionList All(IEnumerable<BsonValue> values)
892892
/// <summary>
893893
/// Tests that the named array element contains all of the values (see $all).
894894
/// </summary>
895-
/// <param name="values">The values to compare to.</param>
895+
/// <param name="values">The values to compare to (nulls are ignored).</param>
896896
/// <returns>The builder (so method calls can be chained).</returns>
897897
public QueryConditionList All(params BsonValue[] values)
898898
{
@@ -978,7 +978,7 @@ public QueryConditionList In(BsonArray values)
978978
/// <summary>
979979
/// Tests that the value of the named element is equal to one of a list of values (see $in).
980980
/// </summary>
981-
/// <param name="values">The values to compare to.</param>
981+
/// <param name="values">The values to compare to (nulls are ignored).</param>
982982
/// <returns>The builder (so method calls can be chained).</returns>
983983
public QueryConditionList In(IEnumerable<BsonValue> values)
984984
{
@@ -993,7 +993,7 @@ public QueryConditionList In(IEnumerable<BsonValue> values)
993993
/// <summary>
994994
/// Tests that the value of the named element is equal to one of a list of values (see $in).
995995
/// </summary>
996-
/// <param name="values">The values to compare to.</param>
996+
/// <param name="values">The values to compare to (nulls are ignored).</param>
997997
/// <returns>The builder (so method calls can be chained).</returns>
998998
public QueryConditionList In(params BsonValue[] values)
999999
{
@@ -1122,7 +1122,7 @@ public QueryConditionList NotIn(BsonArray values)
11221122
/// <summary>
11231123
/// Tests that the value of the named element is not equal to any of a list of values (see $nin).
11241124
/// </summary>
1125-
/// <param name="values">The values to compare to.</param>
1125+
/// <param name="values">The values to compare to (nulls are ignored).</param>
11261126
/// <returns>The builder (so method calls can be chained).</returns>
11271127
public QueryConditionList NotIn(IEnumerable<BsonValue> values)
11281128
{
@@ -1137,7 +1137,7 @@ public QueryConditionList NotIn(IEnumerable<BsonValue> values)
11371137
/// <summary>
11381138
/// Tests that the value of the named element is not equal to any of a list of values (see $nin).
11391139
/// </summary>
1140-
/// <param name="values">The values to compare to.</param>
1140+
/// <param name="values">The values to compare to (nulls are ignored).</param>
11411141
/// <returns>The builder (so method calls can be chained).</returns>
11421142
public QueryConditionList NotIn(params BsonValue[] values)
11431143
{
@@ -1283,7 +1283,7 @@ public QueryNotConditionList All(BsonArray values)
12831283
/// <summary>
12841284
/// Tests that the named array element contains all of the values (see $all).
12851285
/// </summary>
1286-
/// <param name="values">The values to compare to.</param>
1286+
/// <param name="values">The values to compare to (nulls are ignored).</param>
12871287
/// <returns>The builder (so method calls can be chained).</returns>
12881288
public QueryNotConditionList All(IEnumerable<BsonValue> values)
12891289
{
@@ -1297,7 +1297,7 @@ public QueryNotConditionList All(IEnumerable<BsonValue> values)
12971297
/// <summary>
12981298
/// Tests that the named array element contains all of the values (see $all).
12991299
/// </summary>
1300-
/// <param name="values">The values to compare to.</param>
1300+
/// <param name="values">The values to compare to (nulls are ignored).</param>
13011301
/// <returns>The builder (so method calls can be chained).</returns>
13021302
public QueryNotConditionList All(params BsonValue[] values)
13031303
{
@@ -1377,7 +1377,7 @@ public QueryNotConditionList In(BsonArray values)
13771377
/// <summary>
13781378
/// Tests that the value of the named element is equal to one of a list of values (see $in).
13791379
/// </summary>
1380-
/// <param name="values">The values to compare to.</param>
1380+
/// <param name="values">The values to compare to (nulls are ignored).</param>
13811381
/// <returns>The builder (so method calls can be chained).</returns>
13821382
public QueryNotConditionList In(IEnumerable<BsonValue> values)
13831383
{
@@ -1391,7 +1391,7 @@ public QueryNotConditionList In(IEnumerable<BsonValue> values)
13911391
/// <summary>
13921392
/// Tests that the value of the named element is equal to one of a list of values (see $in).
13931393
/// </summary>
1394-
/// <param name="values">The values to compare to.</param>
1394+
/// <param name="values">The values to compare to (nulls are ignored).</param>
13951395
/// <returns>The builder (so method calls can be chained).</returns>
13961396
public QueryNotConditionList In(params BsonValue[] values)
13971397
{
@@ -1472,7 +1472,7 @@ public QueryNotConditionList NotIn(BsonArray values)
14721472
/// <summary>
14731473
/// Tests that the value of the named element is not equal to any of a list of values (see $nin).
14741474
/// </summary>
1475-
/// <param name="values">The values to compare to.</param>
1475+
/// <param name="values">The values to compare to (nulls are ignored).</param>
14761476
/// <returns>The builder (so method calls can be chained).</returns>
14771477
public QueryNotConditionList NotIn(IEnumerable<BsonValue> values)
14781478
{
@@ -1486,7 +1486,7 @@ public QueryNotConditionList NotIn(IEnumerable<BsonValue> values)
14861486
/// <summary>
14871487
/// Tests that the value of the named element is not equal to any of a list of values (see $nin).
14881488
/// </summary>
1489-
/// <param name="values">The values to compare to.</param>
1489+
/// <param name="values">The values to compare to (nulls are ignored).</param>
14901490
/// <returns>The builder (so method calls can be chained).</returns>
14911491
public QueryNotConditionList NotIn(params BsonValue[] values)
14921492
{
@@ -1571,7 +1571,7 @@ public QueryNotConditionList All(BsonArray values)
15711571
/// <summary>
15721572
/// Tests that the named array element contains all of the values (see $all).
15731573
/// </summary>
1574-
/// <param name="values">The values to compare to.</param>
1574+
/// <param name="values">The values to compare to (nulls are ignored).</param>
15751575
/// <returns>The builder (so method calls can be chained).</returns>
15761576
public QueryNotConditionList All(IEnumerable<BsonValue> values)
15771577
{
@@ -1586,7 +1586,7 @@ public QueryNotConditionList All(IEnumerable<BsonValue> values)
15861586
/// <summary>
15871587
/// Tests that the named array element contains all of the values (see $all).
15881588
/// </summary>
1589-
/// <param name="values">The values to compare to.</param>
1589+
/// <param name="values">The values to compare to (nulls are ignored).</param>
15901590
/// <returns>The builder (so method calls can be chained).</returns>
15911591
public QueryNotConditionList All(params BsonValue[] values)
15921592
{
@@ -1672,7 +1672,7 @@ public QueryNotConditionList In(BsonArray values)
16721672
/// <summary>
16731673
/// Tests that the value of the named element is equal to one of a list of values (see $in).
16741674
/// </summary>
1675-
/// <param name="values">The values to compare to.</param>
1675+
/// <param name="values">The values to compare to (nulls are ignored).</param>
16761676
/// <returns>The builder (so method calls can be chained).</returns>
16771677
public QueryNotConditionList In(IEnumerable<BsonValue> values)
16781678
{
@@ -1687,7 +1687,7 @@ public QueryNotConditionList In(IEnumerable<BsonValue> values)
16871687
/// <summary>
16881688
/// Tests that the value of the named element is equal to one of a list of values (see $in).
16891689
/// </summary>
1690-
/// <param name="values">The values to compare to.</param>
1690+
/// <param name="values">The values to compare to (nulls are ignored).</param>
16911691
/// <returns>The builder (so method calls can be chained).</returns>
16921692
public QueryNotConditionList In(params BsonValue[] values)
16931693
{
@@ -1774,7 +1774,7 @@ public QueryNotConditionList NotIn(BsonArray values)
17741774
/// <summary>
17751775
/// Tests that the value of the named element is not equal to any of a list of values (see $nin).
17761776
/// </summary>
1777-
/// <param name="values">The values to compare to.</param>
1777+
/// <param name="values">The values to compare to (nulls are ignored).</param>
17781778
/// <returns>The builder (so method calls can be chained).</returns>
17791779
public QueryNotConditionList NotIn(IEnumerable<BsonValue> values)
17801780
{
@@ -1789,7 +1789,7 @@ public QueryNotConditionList NotIn(IEnumerable<BsonValue> values)
17891789
/// <summary>
17901790
/// Tests that the value of the named element is not equal to any of a list of values (see $nin).
17911791
/// </summary>
1792-
/// <param name="values">The values to compare to.</param>
1792+
/// <param name="values">The values to compare to (nulls are ignored).</param>
17931793
/// <returns>The builder (so method calls can be chained).</returns>
17941794
public QueryNotConditionList NotIn(params BsonValue[] values)
17951795
{
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
BSON library changes from 1.4.1 to 1.4.2
2+
3+
BsonArray.cs
4+
Contains now returns false if value argument is null (instead of throwing ArgumentNullException)
5+
6+
BsonDocument.cs
7+
Parse method now casts document to IBsonSerializable to call Deserialize method
8+
ReadFrom method now casts document to IBsonSerializable to call Deserialize method
9+
Deserialize method marked obsolete
10+
GetDocumentId method marked obsolete
11+
GetDocumentId temporarily changed to be backward compatible with 1.4.0 and earlier
12+
Serialize method marked obsolete
13+
SetDocumentId method marked obsolete
14+
SetDocumentId temporarily changed to be backward compatible with 1.4.0 and earlier
15+
WriteTo method now casts this to IBsonSerializable to call Deserialize method
16+
17+
BsonDocumentWrapper.cs
18+
Deserialize method marked obsolete
19+
GetDocumentId method marked obsolete
20+
Serialize method marked obsolete
21+
SetDocumentId method marked obsolete
22+
23+
BsonValue.cs
24+
WriteTo method now casts documentWrapper to IBsonSerializable to call Serialize method
25+
26+
BsonValueSerializers.cs
27+
BsonDocumentSerializer.GetDocumentId now casts document to IBsonSerializable to call GetDocumentId method
28+
BsonDocumentSerializer.Serialize now casts document to IBsonSerializable to call Serialize method
29+
BsonDocumentSerializer.SetDocumentId now casts document to IBsonSerializable to call SetDocumentId method
30+
BsonDocumentWrapperSerializer.Serialize now casts document to IBsonSerializable to call Serialize method
31+
32+
BsonSerializer.cs
33+
Deserialize method now casts document to IBsonSerializable to call Deserialize method
Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
C# driver changes from 1.4.1 to 1.4.2
2+
3+
CollectionOptionsBuilder.cs
4+
Serialize method now casts document to IBsonSerializable to call Serialize method
5+
6+
FieldsBuilder.cs
7+
Serialize method now casts document to IBsonSerializable to call Serialize method
8+
9+
GeoHaystackSearchOptionsOptionsBuilder.cs
10+
Serialize method now casts document to IBsonSerializable to call Serialize method
11+
12+
GeoNearOptionsBuilder.cs
13+
Serialize method now casts document to IBsonSerializable to call Serialize method
14+
15+
GroupByBuilder.cs
16+
Serialize method now casts document to IBsonSerializable to call Serialize method
17+
18+
IndexKeysBuilder.cs
19+
Serialize method now casts document to IBsonSerializable to call Serialize method
20+
21+
IndexOptionsBuilder.cs
22+
Serialize method now casts document to IBsonSerializable to call Serialize method
23+
24+
MapReduceOptionsBuilder.cs
25+
Serialize method now casts document to IBsonSerializable to call Serialize method
26+
27+
QueryBuilder.cs
28+
All method now skips nulls like functional construction
29+
In method now skips nulls like functional construction
30+
NotIn method now skips nulls like functional construction
31+
Serialize method now casts document to IBsonSerializable to call Serialize method
32+
33+
SortByBuilder.cs
34+
Serialize method now casts document to IBsonSerializable to call Serialize method
35+
36+
UpdateBuilder.cs
37+
Serialize method now casts document to IBsonSerializable to call Serialize method
38+
39+
BaseWrapper.cs
40+
Deserialize method marked obsolete
41+
GetDocumentId method marked obsolete
42+
Serialize method marked obsolete
43+
SetDocumentId method marked obsolete
44+
45+
MongoServer.cs
46+
Ping method now uses Instances poperty instead of _instances field for thread safety
47+
VerifyInstances method now enumerates the instances in a way that is save even if RemoveInstance is called

0 commit comments

Comments
 (0)