11C# driver changes from 1.4 to 1.4.1
22
33QueryBuilder.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
56
67MongoCollection.cs
78 added checks for invalid null arguments
@@ -27,7 +28,7 @@ MongoGridFSSettings.cs
2728 added private field _verifyMD5
2829 added public property UpdateMD5
2930 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
3132
3233MongoGridFSStream.cs
3334 added private field _fileIsDirty
@@ -54,7 +55,7 @@ MongoQueryTranslator.cs
5455SelectQuery.cs
5556 added private field _ofType
5657 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
5859 changed Translate to handle bare AsQueryable (no Where clause or anything else)
5960 changed Translate to move switch statement on method name to new TranslateMethodCall method
6061 changed BuildArrayLengthQuery to handle constant on either side
@@ -66,14 +67,14 @@ SelectQuery.cs
6667 added private method BuildStringIndexQuery to support string[index] in LINQ queries
6768 added private method BuildStringLengthQuery to support string.Length in LINQ queries
6869 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
7273 changed GetSerializationInfo to lookup serializer based on the parameter type (and not necessarily the document type)
7374 changed GetSerializationInfoMember to stop recursion when it gets to a parameter (which may or may not be of the document type)
7475 added private method GetTrimCharsPattern
7576 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
7778
7879LinqExtensionMethods.cs
7980 added an overload of AsQueryable that can deduce the type of <T> from the collection parameter
0 commit comments