forked from pjvds/ncqrs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathRelease Notes v0.11.txt
215 lines (173 loc) · 6.41 KB
/
Release Notes v0.11.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
C# Driver Version 0.11 Release Notes
Summary:
Low level serialization and I/O changes
Can deserialize extra elements into a BsonDocument property
New DateTimeSerializationOptions
New RepresentationSerializationOptions (more types and control over overflow and truncation)
New settings classes (MongoServerSettings, MongoDatabaseSettings, MongoCollectionSettings)
New JsonReader
JsonWriter class names shortened (BsonJsonXyz -> JsonXyz)
New BsonDocumentReader/Writer (can serialize/deserialize to/from BsonDocument)
GeoNear command fully implemented
Query builder support for Near, WithinCircle and WithinRectangle geo queries
Query.And can now handle some queries that previously resulted in duplicate name exceptions
Support for new inline map/reduce results
Connection pool settings (min/max size, timeouts)
MaxDocumentSize retrieved from server (was 4MiB in 1.6.x and is changing over time)
BSON Library changes:
New public interfaces
IBsonSerializationOptions
IExtraElementsMemberConvention
New public classes:
BsonBaseReader
BsonDocumentReader
BsonDocumentWriter
BsonExtraElementsAttributes
DateTimeSerializationOptions
DocumentSerializationOptions
JsonOutputMode (renamed, was BsonJsonOutputMode)
JsonReader
JsonWriter (renamed, was BsonJsonWriter)
JsonWriterSettings (renamed, was BsonJsonWriterSettings)
NamedExtraElementsMemberConvention
RepresentationSerializationOptions
TruncationException
BooleanSerializer
BsonBinaryDataSerializer
BsonBooleanSerializer
BsonDoubleSerializer
BsonInt32Serializer
BonsInt64Serializer
BsonObjectIdSerializer
BsonSymbolSerializer
BitArraySerializer
ByteArraySerializer
ByteSerializer
CultureInfoSerializer
DateTimeOffsetSerializer
DecimalSerializer
DoubleSerializer
GuidSerializer
Int16Serializer
Int32Serializer
Int64Serializer
ObjectIdSerializer
SByteSerializer
SingleSerializer
UInt16Serializer
UInt32Serializer
UInt64Serializer
added support for RepresentationSerializationOptions
BsonClassMap
added support for extra elements member
BsonClassMapSerializer
added support for extra elements member
added support for serialization options
BsonDateTimeSerializer
DateTimeSerializer
added support for DateTimeSerializationOptions
BsonDocument
added Wrap and WrapMultiple methods
added support for DocumentSerializationOptions
BsonDocumentSerializer
BsonDocumentWrapperSerializer
added support for DocumentSerializationOptions
BsonDocumentWrapper
added support for serialization options
BsonExtensionMethods
added overloads of ToBson, ToJson and ToBsonDocument that take options parameter
BsonReader(and subclasses)
removed FindElement
GetBookmark and ReturnToBookmark now use abstract BsonReaderBookmark class
BsonRepresentationAttribute
added AllowOverflow
added AllowTruncation
BsonSerializer
RegisterSerializer by type only (not options)
Serialize now takes an options parameter
BsonValue
now implements IConvertible
ConventionProfile
added ExtraElementsMemberConvention
added SetExtraElementsMemberConvention
Driver changes:
New public interfaces:
IMongoGeoNearOptions
New public classes:
GeoNearOptionsBuilder
GeoNearOptionsDocument
GeoNearOptionsWrapper
MongoServerSettings
MongoDatabaseSettings
MongoCollectionSettings
CommandResult
no longer a subclass of BsonDocument
instead has Response property of type BsonDocument
DirectConnector
ReplicaSetConnector
get MaxDocumentSize and MaxMessageLength from server
FindAndModifyResult
renamed Document property to ModifiedDocument
renamed GetDocument method to GetModifiedDocument
GeoNearResult
now fully implemented
added GeoNearHits and GeoNearHit helper classes
added GeoNearStats helper class
MapReduceOptions
added MapReduceOutput helper class
MapReduceResults
moved file to CommandResults folder
renamed ResultCollectionName to CollectionName
added InlineResults property
MongoCollection
public properties and methods are virtual to support mock object unit testing
added settings field (replaces safeMode and assignIdOnInsert)
added overload of GeoNearAs that takes options parameter
added GeoNear methods to MongoCollection<TDefaultDocument>
MongoConnection
don't connect in constructor (fast construction)
instead connect on first use
MongoConnectionPool
implemented wait queue
implemented min and max size
implemented recycling of very old connections (max lifetime)
MongoConnectionStringBuilder
use only if you want to use .NET connection string format
implemented new connection string options (see MongoUrl)
MongoCursor
public properties and methods are virtual to support mock object unit testing
added SlaveOk property
added SetSlaveOk method
MongoCursorEnumerator
move class to Internal folder
use SlaveOk value from cursor instead of from server
MongoDatabase
public properties and methods are virtual to support mock object unit testing
added settings field (replaces credentials and safeMode)
changed key of collections dictionary to MongoCollectionSettings
added overload of GetCollection that takes settings parameter
MongoServer
public properties and methods are virtual to support mock object unit testing
added settings field (replaces credentials and url)
changed key of servers dictionary to MongoServerSettings
added MaxDocumentSize
added MaxMessageLength
added overload of GetDatabase that takes settings parameter
MongoUrl
MongoUrlBuilder
added support for new options:
ConnectTimeout, DefaultCredentials,
MaxConnectionIdleTime, MaxConnectionLifeTime, MaxConnectionPoolSize, MinConnectionPoolSize,
SocketTimeout, WaitQueueMultiple, WaitQueueSize, WaitQueueTimeout
Query builder
Query.And now rewrites some queries that used to result in duplicate element name exceptions
added Near methods
added WithinCircle and WithinRectangle methods
Singletons renamed Instance
Update builder
added Pull(name, query) overload
added PullAllWrapped methods
added PullWrapped method
added PushAllWrapped methods
added PushWrapped method
added SetWrapped method