794 Commits (90cadbe7f85814e49159493cea5e3f0d9d447edd)
 

Author SHA1 Message Date
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
rstam 99123333a1 Delayed creation of default settings objects so that they are created with the latest lower level default values. Moved GuidByteOrder to its own file. MongoDefaults that have matching BsonDefaults are now aliases for the corresponding BsonDefaults (that way the values are always the same). 14 years ago
rstam ddc1db0829 Refactored how GuidByteOrder is configured and handled. Instead of allowing it to be configured at the individual property level (which was a pain), it is now configured at the server, database and collection levels. This introduces the restriction that all Guids in the same collection must use the same GuidByteOrder, but this restriction should actually help keep things sane and manageable. 14 years ago
rstam 5d9d37bb49 Added support for new JavaHistorical GuidByteOrder. 14 years ago
rstam dc4454d4b4 Fixed CSHARP-238. Non-string Dictionary keys (and values) no longer have a redundant "_t" element (but will if they're needed of course). 14 years ago
rstam 82ce5122d1 Implemented CSHARP-234. GenerateId now takes two parameters: container and document. When called from the C# driver the container argument will be a MongoCollection. 14 years ago
rstam 654277eb7e Implemented CSHARP-235. MongoDatabase.DropCollection and MongoCollection.Drop no longer throw an exception if the collection does not exist. If the caller needs to know whether the collection actually existed they can examine the Ok property of the CommandResult (or call MongoDatabase.CollectionExists or MongoCollection.Exists beforehand). 14 years ago
rstam 89251fcf16 Worked on the wording of more exception messages, this time in the Driver project. 14 years ago
rstam fed330f5d4 Worked on the wording of hundreds of exception messages. Things like turning them into complete sentences that end in a period and adding relevant values when they are helpful. 14 years ago
rstam a32abf4cb8 Added MaxServerCount and ServerCount properties to MongoServer. Modified MongoServer.Create to throw an exception if more than MaxServerCount servers would be created. Added UnregisterServer method to MongoServer (would only be used if client program is talking to many servers but not all at once). 14 years ago
rstam 03f61bb5e8 Since MongoCursorEnumerator is now public I moved it from the Internal folder to the Core folder. 14 years ago
rstam bf07dc1514 Implemented CSHARP-219, support for tailable cursors. 14 years ago
rstam 3e81456d0b Added Parse method to BsonDocument taking a JSON string as input. JsonScanner now support single quotes as well as double quotes for string constants. 14 years ago
rstam 234d1bf615 Added support for Errors and Warnings to ValidateCollectionResult. Tweaked regular expressions used to decode pre 1.9 ResultString. 14 years ago
rstam e51304d3e0 Enhanced ValidateCommandResult to extract information from the result string in earlier versions of the server or the tagged elements in server versions 1.9 and above. A little more work remains. 14 years ago
rstam 4e89037ef9 Implemented CSHARP-231. A class with an Id of type BsonObjectId now uses the new BsonObjectIdGenerator. Also, the use of the NullIdChecker and ZeroIdChecker IdGenerators must now be explicitly turned on: the server supports nulls and zeros as _id values, so by default the driver should also. Some other minor changes to the IdGenerator logic. Lots of new unit tests for Id handling. 14 years ago
rstam f81093352d Fixed CSHARP-230. Dropping a collection now resets the cache used by EnsureIndex to keep track of which indexes have already been created. 14 years ago
rstam 16b6e6b21c Further work on CSHARP-228. Replaced the Microsoft and Standard values of GuidByteOrder with LittleEndian and BigEndian, as it's not so much an issue of how Microsoft defines the byte order as it is an issue of the endianness of the platform the code is running on (though it just so happens that Windows most often runs on litle endian platforms). Also reviewed and streamlined the implementation of CombGuidGenerator. 14 years ago
rstam 9d3d6f3029 Fixed CSHARP-229. All TryParse methods now return false instead of throwing an exception when passed a null string. 14 years ago
rstam a1c9f54678 Implemented CSHARP-228. See the new GuidByteOrder enum that can be used to specify what byte order to use when serializing Guids. Sadly this C# driver and all community C# drivers before it have been serializing Guids in Microsoft's internal byte order, which is different than the standard byte order used by all other drivers. The non-standard Microsoft byte order remains the default so as not to break backward compatibility with existing code and data. 14 years ago
rstam 7862209bf6 Implemented CSHARP-227. Shell JsonOutputMode now uses "new BinData" instead of just "BinData" so output can be pasted into the mongo shell. 14 years ago
rstam 5e8642ec14 Implemented CSHARP-226. MongoGridFS.Find methods now return a MongoCursor instead of an IEnumerable. This should be backward compatible. 14 years ago
rstam 973e87bd20 Merged in pull request 59 from Justin Dearing to allow passing a Hashtable to the constructor of a QueryDocument or an UpdateDocument. Made equivalent changes to the rest of the classes that derive from BsonDocument. These new constructors facilitate creating these objects from Powershell. 14 years ago
Justin Dearing fd66d91c45 Added IDictionary constructors to UpdateDocument and QueryDocument so powershell can autocast them. 14 years ago
rstam 6073eb5624 Fixed CSHARP-224. GetMore now gets the connection it needs from the server instead of directly from the server instance so that a RequestStart in scope will be honored. 14 years ago
rstam cecc05961c Implemented CSHARP-223. Added Shutdown method to MongoServer. 14 years ago
rstam ab229d3f35 Added unit test for MongoGridFSStream OpenCreate with metadata. 14 years ago
rstam 9068d8ae7c Merge git://github.com/mhamrah/mongo-csharp-driver into mhamrah-master 14 years ago
rstam 988a4a95a0 The generic version of GeoNearHits was implementing IEnumerable<T> twice (once due to inheritance), which caused LINQ methods like Skip to not work. The fix is to make the non-generic base class of GeoNearHits implement the non-generic IEnumerable. 14 years ago
mhamrah fdfcc71f4a Adding Metadata Support for FileStream Operations 14 years ago