1
1
C# driver changes from 1.4 to 1.4.1
2
2
3
3
QueryBuilder.cs
4
- changed Or method to support empty queries (an empty query matches all documents)
4
+ changed Or method to handle empty queries (an empty query matches all documents)
5
+ note: the And method did not require any changes to handle empty queries
5
6
6
7
MongoCollection.cs
7
8
added checks for invalid null arguments
@@ -27,7 +28,7 @@ MongoGridFSSettings.cs
27
28
added private field _verifyMD5
28
29
added public property UpdateMD5
29
30
added public property VerifyMD5
30
- changed Clone, Equal and GetHashCode to consider new fields
31
+ changed Clone, Equal and GetHashCode to take new fields into account
31
32
32
33
MongoGridFSStream.cs
33
34
added private field _fileIsDirty
@@ -54,7 +55,7 @@ MongoQueryTranslator.cs
54
55
SelectQuery.cs
55
56
added private field _ofType
56
57
added public property OfType
57
- changed Execute to handle LINQ queries that included an OfType query operator
58
+ changed Execute to handle LINQ queries that included an OfType<T> query operator
58
59
changed Translate to handle bare AsQueryable (no Where clause or anything else)
59
60
changed Translate to move switch statement on method name to new TranslateMethodCall method
60
61
changed BuildArrayLengthQuery to handle constant on either side
@@ -66,14 +67,14 @@ SelectQuery.cs
66
67
added private method BuildStringIndexQuery to support string[index] in LINQ queries
67
68
added private method BuildStringLengthQuery to support string.Length in LINQ queries
68
69
changed BuildStringQuery to allow combining ToLower/ToUpper/Trim/TrimStart/TrimEnd with Contains/StartsWith/EndsWith in LINQ queries
69
- added private method BuildTypeComparisonQuery to support x.GetType() == typeof(X ) in LINQ queries
70
- added private method BuildTypeIsQuery to support x is X in LINQ queries
71
- changed CombinePredicateWithWhereClause to handle parameter type being changed by OfType query operator
70
+ added private method BuildTypeComparisonQuery to support x.GetType() == typeof(T ) in LINQ queries
71
+ added private method BuildTypeIsQuery to support x is T in LINQ queries
72
+ changed CombinePredicateWithWhereClause to handle parameter type being changed by OfType<T> query operator
72
73
changed GetSerializationInfo to lookup serializer based on the parameter type (and not necessarily the document type)
73
74
changed GetSerializationInfoMember to stop recursion when it gets to a parameter (which may or may not be of the document type)
74
75
added private method GetTrimCharsPattern
75
76
added private method TranslateMethodCall
76
- added private method TranslateOfType to support OfType query operator
77
+ added private method TranslateOfType to support OfType<T> query operator
77
78
78
79
LinqExtensionMethods.cs
79
80
added an overload of AsQueryable that can deduce the type of <T> from the collection parameter
0 commit comments