116 Commits (dfb91df7615554ba46258c4eb64c1649a567f86c)

Author SHA1 Message Date
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 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 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 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 64aa1ba2ac Implemented CSHARP-216. Added support for nolock option to MongoDatabase.Eval. 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 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
sridharn 4b2aad8698 Fix for CSharp-244. Fixed typo in unit test expected value 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 89251fcf16 Worked on the wording of more exception messages, this time in the Driver project. 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 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 ab229d3f35 Added unit test for MongoGridFSStream OpenCreate with metadata. 14 years ago
rstam bd6fa63bc4 Implemented CSHARP-221. Added UpdateMD5 property to MongoGridFSStream. 14 years ago
rstam ed96fc1583 Fixed CSHARP-218. We now provide a better exception when attempting to deserialize a value type (which is not supported yet). 14 years ago
rstam 1091cadb17 Fixed CSHARP-215. Save now works even when _id is a string in memory represented as an ObjectId in the database. 14 years ago
rstam 33cc26c64a Fixed CSHARP-214. FindAndModify and FindAndRemove no longer throw an exception when there is no matching document. 14 years ago
rstam 84a4bdec95 Cleaned up MongoCursor.Clone. Added unit test for Explain. 14 years ago
rstam 8621613efe Partial work on CSHARP-212. Added Powershell friendly versions of generic methods in MongoCollection, MongoCursor, MongoDatabase and MongoServer as well as related helper classes. 14 years ago
rstam 1a730b60c7 Fixed CSHARP-198. Save now works with composite Id (including polymorphic Ids). GetDocumentId now has an additional out parameter for idNominalType. 15 years ago
rstam 2ef5c391b9 Fixed CSHARP-193. Added unit test for MapReduce overload that was failing. 15 years ago
rstam ea1945a44c Implemented MongoServer.Ping. 15 years ago
rstam 24e52ae65f Implemented Shell JsonOutputMode for ObjectId and adjusted lots of unit tests since Shell is now the default output mode. 15 years ago
rstam 6f9e959f54 Second round of namespace refactoring. Removed the MongoDB.Bson.DefaultSerializer namespace and moved everything from it into the MongoDB.Bson.Serialization namespace or one of its child namespaces (Attributes, Conventions or Options). The goal here is to unify serialization under the MongoDB.Bson.Serialization namespace and that the most common uses of serialization require only a single using statement for the top level namespace. A secondary goal is to organize the namespace hierarchy a little better as presented in the help file. 15 years ago
rstam a6c0d53ff9 Implemented MongoCollection.ReIndex. Unit test is a little weird because server versions before 1.8.1 return duplicate ok elements in the response. 15 years ago
rstam fbc093ce51 Added doc comments for new overload of SetHint. Strengthened unit tests for SetHint. 15 years ago
rstam 01758e5660 Changes to a few unit tests to get them to pass using Mono on Windows using both the Microsoft .NET and the Mono runtimes. 15 years ago
rstam b0e5be74b2 Added IMongoCollectionOptions, CollectionOptionsDocument, CollectionOptionsWrapper and CollectionOptionsBuilder. 15 years ago
rstam ecfafcafd1 Implemented CSHARP-172. Allow an ObjectId in the database to be represented as a string in memory so domain classes don't have to depend on the driver for the ObjectId class if they don't want to. Also added StringObjectIdGenerator. 15 years ago
Ed Rooth 16ab991e8c Added ability to SetHint() with only the index name plus test 15 years ago
rstam d2108047ee Save has been modified to require that the document being saved have an Id member (this eliminates a common programming error when attempting to save an instance of a class that either has no Id member or where the Id member has not been properly identified). 15 years ago
rstam e9ba8346b0 Added GetResults and GetResultsAs to MapReduceResult. This provides a uniform API to get results whether they are inline or stored in an output collection. 15 years ago
rstam 81e4949e7f Renamed GetModifiedDocument to GetModifiedDocumentAs in FindAndModifyResult. Added unit test. 15 years ago
rstam 0c8fbe911b Implemented DatabaseExists. 15 years ago
rstam a1ee94f894 Moved MongoGridFS.DefaultSettings to MongoGridFSSettings.Defaults to be consistent with how other defaults are handled. Renamed DefaultChunkSize to ChunkSize. 15 years ago
rstam 14933e76b8 Added additional unit tests for FindAndModify. 15 years ago
rstam c1a907a258 Merged in CaptainCodeman's pull request adding support for the upsert flag to FindAndModify. Added unit test for FindAndModify. 15 years ago
rstam b0af226e99 Change to CSHARP-163 fix. Nat pointed out on Google Groups that filename is technically optional in GridFS, so made minor changes to support that. 15 years ago
rstam ecb411f155 Fixed CSHARP-163. Allow BSON null values for aliases, contentType and metadata fields for GridFS files to interoperate with other drivers. 15 years ago
rstam 52b060804a Got rid of all compile time warnings by either making minor source code changes or using #pragma warning disable where the warning ought to be ignored. 15 years ago
rstam b7e210abd7 Implemented MoveTo in MongoGridFS and MongoGridFSFileInfo. 15 years ago
rstam 345976dc5a Implemented CopyTo in MongoGridFS and MongoGridFSFileInfo. 15 years ago