61 Commits (d2b72a19c93d73f3ac52a5b2f75eb3722d561fdd)

Author SHA1 Message Date
rstam 4d1fae0f6d Removed DriverSetup from the Visual Studio 2008 solution because it only builds in Visual Studio 2010 now (not sure why? upgade not backward compatible?). Added lib directory to dependencies/NUnit to hold the minimal set of files needed to compile the solution, so now you don't need to install NUnit just to do a build (you will have to install it to actually run the unit tests, unless you use a different test runner). 15 years ago
rstam ffc11dc220 Added solution files for Visual Studio 2008 and 2010 (they share the same set of project files). 15 years ago
rstam ef50bbefa1 Fixed CSHARP-78. Default UseCompactRepresentation to true for primitive properties. Added PushBookmark and PopBookmark to BsonReader to support reading ahead. Fixed handling of discriminators in BsonClassMapSerializer. FindString in BsonReader now actually moves the position (use bookmarks now to read ahead). 15 years ago
rstam 5024e87639 Changed BsonIdAttribute to take optional IdGenerator parameter. Changed PropertyMap to allow customizing the Id generator for a property. 15 years ago
rstam a3bc1ee082 Changed GeneralEnumSerializer to support UseCompactRepresentation (compact is int/long, full is string). Added unit tests for serializing [Flags] enums. 15 years ago
rstam 0999243603 Fixed CSHARP-77 by improving Id detection algorithm but also by fixing how documents without an Id property are handled. Added DocumentHasIdProperty, DocumentHasIdValue and GenerateDocumentId to IBsonSerializer and IBsonSerializable. Added new IBsonIdGenerator interface and registration/lookup methods for Id generators to BsonSerializer. Implemented Id generators for ObjectId and Guid. Moved lots of common code to BuilderBase. Fixed Insert and Save methods to properly detect and/or assign Ids to documents. 15 years ago
rstam 668110faf6 Added initial version of DriverOnlineTests project. These tests differ from the tests in DriverUnitTests because they connect to localhost to test against a live database. 15 years ago
rstam 3900d3f0db Renamed MongoDB.BsonLibrary namespace to MongoDB.Bson and MongoDB.CSharpDriver to MongoDB.Driver (Library was redundant and VB users might not want to see CSharp in the namespace). Renamed Bson static class BsonConstants (because it a class can't have the same name as the namespace it is in). 15 years ago