1
1
C# driver changes from 1.5 to 1.6
2
2
3
+ IndexOptionsBuilder.cs
4
+ added SetTimeToLive
5
+
3
6
QueryBuilder.cs
4
7
QueryBuilderTyped.cs
5
8
Mod arguments changed from int to long
@@ -8,13 +11,21 @@ AggregateResult.cs
8
11
new class
9
12
represents the result of an aggregate command
10
13
14
+ CollectionStatsResults.cs
15
+ added CollectionSystemFlags and CollectionUserFlags enums
16
+ marked Flags property obsolete
17
+ added SystemFlags and UserFlags properties
18
+
11
19
IsMasterResult.cs
12
20
new class
13
21
represents the result of an IsMaster command
14
22
15
23
ConnectWaitFor.cs
16
24
enum removed (obsoleted by ReadPreference)
17
25
26
+ GetIndexesResult.cs
27
+ added TimeToLive property to IndexInfo class
28
+
18
29
MongoCollection.cs
19
30
added Aggregate helper method
20
31
obsoleted slaveOk
@@ -56,6 +67,8 @@ MongoServer.cs
56
67
instance management logic moved from this class to new proxy classes
57
68
static constructor no longer registers serializers (see MongoDBRef and SystemProfileInfo)
58
69
removed ConnectWaitFor overload to Connect
70
+ obsoleted slaveOk
71
+ added support for ReadPreference
59
72
60
73
MongoServerBuildInfo.cs
61
74
added new FromCommandResult helper factory method
@@ -65,11 +78,14 @@ MongoServerInstance.cs
65
78
added tracking of a running average Ping time
66
79
moved state verification time here from MongoConnectionPool
67
80
added several new internal properties (AveragePingTime, ReplicaSetInformation, InstanceType)
68
- changed most thread synchronization to use Interlocked methods rather than locks
81
+ reengineered how locking is used
82
+ changed some thread synchronization to use Interlocked methods rather than locks
83
+ IsMasterResult now returns an instance of the new IsMasterResult class
69
84
reimplemented VerifyState
70
- reimplemented Connect
85
+ reimplemented Connect and Disconnect
71
86
renamed internal VerifyState helper method to LookupServerInformation (and reimplemented it)
72
87
added internal Ping helper method that keeps running average of Ping time
88
+ added new ServerInformation helper class
73
89
74
90
MongoServerSettings.cs
75
91
obsoleted slaveOk
@@ -136,46 +152,60 @@ DiscoveringMongoServerProxy.cs
136
152
new class that is used when we won't know what kind of server we are connected to until we try to connect to it
137
153
138
154
IMongoServerProxy.cs
139
- interface for proxies
155
+ interface for server proxies
140
156
141
157
MongoConnection.cs
142
158
added support for SSL
159
+ changed RunCommand to take a database name instead of a collection name
143
160
144
161
MongoConnectionPool.cs
145
162
moved state verification timer to MongoServerInstance
163
+ new MaintainPoolSize method is a refactoring of the old TimerCallback method
146
164
RemoveConnection is now private
147
165
148
166
MongoServerProxyFactory.cs
149
167
new class to handle choosing the type of IMongoServerProxy to create based on settings
150
168
151
- MultipleConnectionMongoServerProxy .cs
169
+ MultipleInstanceMongoServerProxy .cs
152
170
new abstract class for managing multiple active MongoServerInstances
153
171
154
172
PingTimeAggregator.cs
155
173
new class to keep track of ping times and their average for a MongoServerInstance
156
174
157
175
ReplicaSetConnector.cs
158
176
removed class
159
- more or less replaced by MultipleConnectionMongoServerProxy and ReplicaSetMongoServerProxy
177
+ more or less replaced by MultipleInstanceMongoServerProxy and ReplicaSetMongoServerProxy
160
178
161
179
ReplicaSetInformation.cs
162
180
new class to hold information about a replica set
163
181
164
182
ReplicaSetMongoServerProxy.cs
165
- new subclass of MultipleConnectionMongoServerProxy to implement replica set specifics
183
+ new subclass of MultipleInstanceMongoServerProxy to implement replica set specifics
166
184
167
185
ShardedMongoServerProxy.cs
168
- new sublcass of MultipleConnectionMongoServerProxy to implement mongos specifics
186
+ new sublcass of MultipleInstanceMongoServerProxy to implement mongos specifics
169
187
170
- MongoQueryProvider.cs
171
- fixed a bug related to First, FirstOrDefault, Single and SingleOrDefault when projecting a primitive type
188
+ ExpressionNormalizer.cs
189
+ normalize comparisons of Nullable<T> from VB to C#
190
+ VisitUnary now calls base method before normalizing
172
191
173
192
PredicateTranslator.cs
174
- changed Mod operation to use a 64-bit integer
193
+ changed Mod query operator to support either 32-bit or 64-bit integers
194
+
195
+ Projector.cs
196
+ added new IProjector and IProjector<TSource, TResult> interfaces
197
+ added new IdentityProjector<T> class
198
+ Projector<TSource, TResult> now implements IProjector<TSource, TResult> interface
199
+ added Cursor property to Projector
175
200
176
201
SelectQuery.cs
177
202
changed skip and take handling to be order dependent
178
203
Distinct now must appear last in the query pipeline
204
+ changed Execute so that a projector is always used, even if it is only an IdentityProjector
179
205
180
206
BsonSerializationInfoHelper.cs
181
- moved code to the BsonSerializationInfo class
207
+ moved SerializeValue and SerializeValues to the BsonSerializationInfo class
208
+ but left behind forwarding stubs (for now)
209
+
210
+ MongoQueryProvider.cs
211
+ fixed a bug related to First, FirstOrDefault, Single and SingleOrDefault when projecting a primitive type
0 commit comments