723 Commits (a4b69e00016f1b5c52f22b8c40853446ecc2df83)
 

Author SHA1 Message Date
rstam a4b69e0001 Implemented CSHARP-276. Added overloads of the BsonArray constructor and AddRange and Create methods that take a non-generic IEnumerable parameter. Also removed the BsonDocumentToBsonArray mapping in BsonTypeMapper because it conflicts with the new IEnumerable overloads (and it was a rather far-fetched mapping anyway). 14 years ago
rstam 1031516348 Implemented CSHARP-254. Several return values that could potentially overflow Int32 have been changed to Int64. 14 years ago
rstam 8838a2aefb Implemented CSHARP-274. Make the overloads (both generic and non-generic) of Insert, InsertBatch and Save match. 14 years ago
rstam 8e9d342487 Implemented CSHARP-270. Added more information to a few of the error messages in exceptions thrown by BsonClassMapSerializer. 14 years ago
rstam dfb91df761 Changed MongoConnection to remember the RequestId of the last message sent on this connection. 14 years ago
rstam 975ea705aa Fixed CSHARP-273. If isMaster reports both arbiterOnly and passive true, only believe arbiterOnly and set passive to false. 14 years ago
rstam 58dd471dc4 Implemented CSHARP-272. Changed BsonSerializer.ConfigLock to a ReaderWriterSlimLock to increase concurrency. 14 years ago
rstam 23346cd0f4 Fixed CSHARP-269. MongoGridFS.EnsureIndexes now checks actual server instance (if a RequestStart is in scope) to see if it is a primary. MongoGridFS.Download now actually uses slaveOk from database.Settings. Added overload of RequestStart with slaveOk parameter. Added RequestConnection property to MongoServer that can be used to get the actual connection reserved by RequestStart. Made get accessors of MongoConnection properties public so client code can get information about a connection. 14 years ago
rstam 2e19437214 Implemented CSHARP-267. JsonReader and JsonWriter now support UUID, CSUUID, JUUID and PYUUID for creating various representations of UUIDs, and HexData as a variant of BinData that uses hex instead of Base64. Added out guidRepresentation parameter to ReadBinaryData. Added ShellVersion property to JsonWriterSettings, so now JsonWriter can tailor Shell output mode to the version of the shell being targeted. 14 years ago
rstam 68f8ef8fb5 Fixed CSHARP-265. DictionarySerializer and DictionaryGenericSerializer now switch to the alternate array representation when any key value is not a valid element name. The client code can also force use of Array or Document representation using serialization options (perhaps for efficiency reasons to skip scanning the keys for validity as element names). 14 years ago
rstam d7ce7f2ee5 Further work on CSHARP-257. Added Capacity property to BsonArray. 14 years ago
rstam ef3928b1bc Implemented CSHARP-257 (at least partially?) by adding a new BsonArray constructor that lets the caller set the initial capacity of the BsonArray. 14 years ago
rstam 2f4bfa6567 Implemented CSHARP-261 and CSHARP-262. JsonReader now supports more variants of Date constructors (with or without new). JsonWriter now writes "new" in front of Date as required by JavaScript. 14 years ago
rstam 0a1371cfef Implemented CSHARP-260. Modified JsonReader to support additional ways of representing regular expressions. 14 years ago
rstam 9e15bfdab4 Fixed CSHARP-258. Added FixOldDateTimeMaxValueOnInput property to BsonBinaryReaderSettings and modified BsonBinaryReader to fix old DateTime.MaxValues on input if FixOldDateTimeMaxValueOnInput is true. 14 years ago
rstam 444570736f Further work on CSHARP-253 to allow CreateIndex to work with nested element names. CreateIndex calls Insert, so Insert has been modified to allow the caller to set CheckElementNames to false (see the new MongoInsertOptions class). While this was put in for CreateIndex, it also makes it possible for a developer to disable element name checking if necessary. 14 years ago
rstam 53dcc56e57 These changes mirror the changes made yesterday to the BsonWriters. Consolidated BsonBaseReader into BsonReader. Added abstract base class BsonReaderSettings to hold settings common to all readers. 14 years ago
rstam 1738993e77 Implemented CSHARP-253. Check Insert, Update and FindAndModify documents for invalid element names. Added CheckElementNames and CheckUpdateDocument properties to BsonWriter. Consolidated BsonBaseWriter into BsonWriter. Added new base BsonWriterSettings to hold settings common to all BsonWriters. Added unit tests for CSHARP-253. 14 years ago
rstam 0f330c1cc6 Implemented CSHARP-247. It is now possible to deserialize a document to an interface provided the document contains a discriminator indicating the actual type. 14 years ago
rstam 215cd5b38b Merge branch 'master' of github.com:mongodb/mongo-csharp-driver 14 years ago
sridharn 87a5a5b825 CSHARP-250. 1.1 nuget spec 14 years ago
rstam 5b002bc7cf Changed AssemblyVersion to 1.2.0.*. 14 years ago
rstam 29f3acdb38 BUMP 1.1.0.4184. 14 years ago
rstam f4826c06da Update release notes with UuidStandard instead of Uuid. 14 years ago
rstam c9f9a9b235 BsonBinarySubType enum no longer has a value Uuid (instead of just changing the value of Uuid from 3 to 4 we introduced two new names: UuidLegacy and UuidStandard). The reason is that it is better to get a compile time error if you have code that used the Uuid value than for it to compile correctly but with a new value of 4, which would almost certainly silently introduce bugs. If you used Uuid in the past you have to decide whether to use UuidLegacy or UuidStandard in the future. 14 years ago
rstam 896666bda2 Changing setup project for version 1.1. 14 years ago
rstam 8284c37696 Edits to the release notes. 14 years ago
rstam 76521bc9af Partial implementation of ConvertGuids utility. Minor edits of release notes. 14 years ago
sridharn 4dd056a2f8 Some release note cleanup 14 years ago
rstam f799b3a0b2 First draft of version 1.1 release notes. 14 years ago
rstam cc4dc19330 Added Bit Diffusion Limited to list of contributors. 14 years ago
rstam 9397560010 Implemented CSHARP-251. Added support for custom type mappers to BsonTypeMapper. 14 years ago
rstam 64aa1ba2ac Implemented CSHARP-216. Added support for nolock option to MongoDatabase.Eval. 14 years ago
rstam ccc1726690 Added guidRepresentation parameter to WriteBinaryData. Most writers end up ignoring it (for example, the BsonBinaryWriter ignores it because BSON has no place to store it), but BsonDocumentWriter uses it to preserve the GuidRepresentation of the BsonBinaryData in the resulting BsonDocument. 14 years ago
rstam 4f47b0a69f Implemented CSHARP-248. Added FindAllUsers and FindUser methods to MongoDatabase. Added new MongoUser class. Found a bunch of unit tests that weren't being run because they were missing the [Test] attribute. 14 years ago
Justin Dearing 870c9e52ba Fixes CSHARP-246 Added an overload of MongoDatabase.CreateCollection() that takes only the database name as a parameter 14 years ago
rstam 5bf6b376b0 Replaced GuidByteOrder with GuidRepresentation. Binary sub type 3 is now called UuidLegacy, and a new sub type 4 called Uuid is introduced to represent UUIDs stored in a well defined network byte order. Sub type 3 represents legacy UUIDs stored in a driver dependent byte order. The lowest level at which the GuidRepresentation can be configured is the collection. This is a breaking change from some code because the value of BsonBinarySubType Uuid changed from 3 to 4. 14 years ago
rstam c78f6b3390 Fixed CSHARP-245. Added BuildInfo property to MongoServer and MongoServerInstance. The BuildInfo class contains a Version property that the failing unit tests use to check that the server being used supports the feature being tested (if not the test is skipped). 14 years ago
rstam cac500ef1d Implemented CSHARP-243. Added support for mappping between new regex options and equivalent .NET Regex options. 14 years ago
sridharn 4b2aad8698 Fix for CSharp-244. Fixed typo in unit test expected value 14 years ago
rstam 6b2bf91e69 Implemented CSHARP-242, serialization support for IPAddress and IPEndPoint. 14 years ago
rstam 14b2c0aa80 Fixed formatting of CSHARP-199 fix. Standardized unit tests. 14 years ago
sridharn a8f890e363 CSharp-199. Fixed broken test and added a new one 14 years ago
sridharn 0ca2436837 Fix for CSHARP-199. Chaining of updates 14 years ago
rstam 3108b605a9 Only set SlaveOk to false in CommandCollectionSettings if ConnectionMode is ReplicaSet. GetServerInstance just returns the one and only instance unless ConnectionMode is ReplicaSet. 14 years ago
rstam 15fb7bb3a7 Minor fixes. 14 years ago
rstam d66802746a Fixed CSHARP-225. ReplicaSetConnector.Connect now makes sure that the serverInstance it identifies as primary was connected to using the official replica set configured host name for that server. Also fixed a NullReferenceException in MongoServerInstance.Disconnet. 14 years ago
rstam a987171606 Minor change related to CSHARP-225. Replaces a NullReferenceException (which is never a good exception) with a MongoConnectionException with the message "Primary server not found". Doesn't fix CSHARP-255, but gives a better exception. 14 years ago
rstam 1d2b1b9d8f Fixed CSHARP-204. The patch supplied with the bug report made sense to me. Thanks to Miguel Pilar for the patch. 14 years ago
rstam acab8e1ecc Added unit test for CSHARP-239. Was unable to reproduce. 14 years ago