Browse Source

BUMP 0.9.0.3992.

pull/30/head v0.9.0.3992
rstam 15 years ago
parent
commit
5db8f4d341
  1. 2
      Driver/Core/Wrappers/CommandWrapper.cs
  2. 71
      DriverSetup/DriverSetup.vdproj
  3. 2
      GlobalAssemblyInfo.cs
  4. 198
      Release Notes v0.9.txt
  5. 4
      packages/makepackages.bat

2
Driver/Core/Wrappers/CommandWrapper.cs

@ -33,7 +33,7 @@ namespace MongoDB.Driver {
#endregion
#region public static methods
public static CommandWrapper Create<T>(
public static new CommandWrapper Create<T>(
T command
) {
return new CommandWrapper(typeof(T), command);

71
DriverSetup/DriverSetup.vdproj

@ -13,12 +13,6 @@
"SccProvider" = "8:"
"Hierarchy"
{
"Entry"
{
"MsmKey" = "8:_06171FA0295C4177BFB9208A8151317A"
"OwnerKey" = "8:_UNDEFINED"
"MsmSig" = "8:_UNDEFINED"
}
"Entry"
{
"MsmKey" = "8:_0AB07507856449E9923AB56E5FAA7BB2"
@ -39,6 +33,12 @@
}
"Entry"
{
"MsmKey" = "8:_74791F8F0D7648F9A5F54C6AA3D9C0F2"
"OwnerKey" = "8:_UNDEFINED"
"MsmSig" = "8:_UNDEFINED"
}
"Entry"
{
"MsmKey" = "8:_UNDEFINED"
"OwnerKey" = "8:_22DFE61C26514E45B3D98A03CFA1E240"
"MsmSig" = "8:_UNDEFINED"
@ -154,10 +154,10 @@
}
"File"
{
"{1FB2D0AE-D3B9-43D4-B9DD-F88EC61E35DE}:_06171FA0295C4177BFB9208A8151317A"
"{1FB2D0AE-D3B9-43D4-B9DD-F88EC61E35DE}:_0AB07507856449E9923AB56E5FAA7BB2"
{
"SourcePath" = "8:..\\Release Notes v0.7.txt"
"TargetName" = "8:Release Notes v0.7.txt"
"SourcePath" = "8:..\\License.rtf"
"TargetName" = "8:License.rtf"
"Tag" = "8:"
"Folder" = "8:_D4C7539AEF6E411F98A857872FF5F2FC"
"Condition" = "8:"
@ -174,10 +174,21 @@
"IsDependency" = "11:FALSE"
"IsolateTo" = "8:"
}
"{1FB2D0AE-D3B9-43D4-B9DD-F88EC61E35DE}:_0AB07507856449E9923AB56E5FAA7BB2"
"{9F6F8455-1EF1-4B85-886A-4223BCC8E7F7}:_68791BFCA02EDE379F08E6AC19E7F96F"
{
"SourcePath" = "8:..\\License.rtf"
"TargetName" = "8:License.rtf"
"AssemblyRegister" = "3:1"
"AssemblyIsInGAC" = "11:FALSE"
"AssemblyAsmDisplayName" = "8:MongoDB.Bson, Version=0.9.0.3992, Culture=neutral, processorArchitecture=MSIL"
"ScatterAssemblies"
{
"_68791BFCA02EDE379F08E6AC19E7F96F"
{
"Name" = "8:MongoDB.Bson.dll"
"Attributes" = "3:512"
}
}
"SourcePath" = "8:MongoDB.Bson.dll"
"TargetName" = "8:"
"Tag" = "8:"
"Folder" = "8:_D4C7539AEF6E411F98A857872FF5F2FC"
"Condition" = "8:"
@ -191,19 +202,13 @@
"PackageAs" = "3:1"
"Register" = "3:1"
"Exclude" = "11:FALSE"
"IsDependency" = "11:FALSE"
"IsDependency" = "11:TRUE"
"IsolateTo" = "8:"
}
"{9F6F8455-1EF1-4B85-886A-4223BCC8E7F7}:_68791BFCA02EDE379F08E6AC19E7F96F"
"{1FB2D0AE-D3B9-43D4-B9DD-F88EC61E35DE}:_74791F8F0D7648F9A5F54C6AA3D9C0F2"
{
"AssemblyRegister" = "3:1"
"AssemblyIsInGAC" = "11:FALSE"
"AssemblyAsmDisplayName" = "8:MongoDB.Bson, Version=0.7.0.3959, Culture=neutral, processorArchitecture=MSIL"
"ScatterAssemblies"
{
}
"SourcePath" = "8:MongoDB.Bson.dll"
"TargetName" = "8:"
"SourcePath" = "8:..\\Release Notes v0.9.txt"
"TargetName" = "8:Release Notes v0.9.txt"
"Tag" = "8:"
"Folder" = "8:_D4C7539AEF6E411F98A857872FF5F2FC"
"Condition" = "8:"
@ -217,7 +222,7 @@
"PackageAs" = "3:1"
"Register" = "3:1"
"Exclude" = "11:FALSE"
"IsDependency" = "11:TRUE"
"IsDependency" = "11:FALSE"
"IsolateTo" = "8:"
}
}
@ -257,7 +262,7 @@
{
"{9EF0B969-E518-4E46-987F-47570745A589}:_714AC4AABA3743F280D3824A1345875C"
{
"Name" = "8:CSharpDriver 0.7"
"Name" = "8:CSharpDriver 0.9"
"AlwaysCreate" = "11:FALSE"
"Condition" = "8:"
"Transitive" = "11:FALSE"
@ -272,7 +277,7 @@
}
"{3C67513D-01DD-4637-8A68-80971EB9504F}:_D4C7539AEF6E411F98A857872FF5F2FC"
{
"DefaultLocation" = "8:[ProgramFilesFolder]\\MongoDB\\CSharpDriver 0.7"
"DefaultLocation" = "8:[ProgramFilesFolder]\\MongoDB\\CSharpDriver 0.9"
"Name" = "8:#1925"
"AlwaysCreate" = "11:FALSE"
"Condition" = "8:"
@ -297,16 +302,16 @@
"Product"
{
"Name" = "8:Microsoft Visual Studio"
"ProductName" = "8:MongoDB CSharpDriver 0.7"
"ProductCode" = "8:{0240B29D-02E1-40FE-AC46-EDD51CB2787A}"
"PackageCode" = "8:{E69BF95A-BA98-4E35-8306-E0EE27EDDCB1}"
"UpgradeCode" = "8:{1A153086-2CAF-42FA-B2F0-2659C64A7DA2}"
"ProductName" = "8:MongoDB CSharpDriver 0.9"
"ProductCode" = "8:{A8292B35-4F6F-4408-9A44-17FD19B3EE57}"
"PackageCode" = "8:{FA97876D-572A-45BD-8E7B-9A230083DA55}"
"UpgradeCode" = "8:{46C749F8-EFFE-4D6F-A2DD-CEF13955021C}"
"AspNetVersion" = "8:4.0.30319.0"
"RestartWWWService" = "11:FALSE"
"RemovePreviousVersions" = "11:FALSE"
"DetectNewerInstalledVersion" = "11:TRUE"
"InstallAllUsers" = "11:TRUE"
"ProductVersion" = "8:0.7"
"ProductVersion" = "8:0.9"
"Manufacturer" = "8:10gen Inc."
"ARPHELPTELEPHONE" = "8:"
"ARPHELPLINK" = "8:"
@ -497,15 +502,15 @@
}
"Shortcut"
{
"{970C0BB2-C7D0-45D7-ABFA-7EC378858BC0}:_4FA2BFFD52574B3A95D5E3D4B58038A0"
"{970C0BB2-C7D0-45D7-ABFA-7EC378858BC0}:_BB8FC2CB9E3F440F88309CF67130F6AD"
{
"Name" = "8:Release Notes v0.7.txt"
"Name" = "8:Release Notes v0.9.txt"
"Arguments" = "8:"
"Description" = "8:"
"ShowCmd" = "3:1"
"IconIndex" = "3:0"
"Transitive" = "11:FALSE"
"Target" = "8:_06171FA0295C4177BFB9208A8151317A"
"Target" = "8:_74791F8F0D7648F9A5F54C6AA3D9C0F2"
"Folder" = "8:_714AC4AABA3743F280D3824A1345875C"
"WorkingFolder" = "8:_D4C7539AEF6E411F98A857872FF5F2FC"
"Icon" = "8:"

2
GlobalAssemblyInfo.cs

@ -37,4 +37,4 @@ using System.Runtime.InteropServices;
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("0.9.0.*")]
[assembly: AssemblyVersion("0.9.0.3992")]

198
Release Notes v0.9.txt

@ -0,0 +1,198 @@
C# Driver Version 0.9 Release Notes
Summary:
Simplified and improved serialization
(see IBsonSerializable and IBsonSerializer)
Serialization support for more .NET classes (including Dictionary)
Many bug fixes and usability enhancements
Some classes now immutable (MongoServer, MongoDatabase, etc...)
Other classes become immutable after Freeze is called
Redesigned low level I/O classes (to simplify serialization)
Improved compile time type safety
BSON Library Changes:
ArraySerializer
is now a generic serializer
serializers for 1-3 dimensional arrays
BsonBuffer
Read/WriteObjectId changed to match new ObjectId internal representation
added Skip and SkipCString methods
BsonClassMap
added Freeze method (immutable once frozen)
added SetIdMember method
added UnmapField, UnmapMember and UnmapProperty methods
BsonClassMapSerializer
Support new GetDocumentId/SetDocumentId methods
BsonDefaultSerializer
GetSerializer method
return serializers for 1-3 dimensional arrays
return serializer for enums
if invalid serialization options were provided use default options
BsonDocument
renamed Count to ElementCount
BsonDocumentWrapper
wrap nominalType also
added CreateMultiple method
BsonElement
moved serialization logic to BsonValue
BsonMemberMap
added SetRepresentation method
better error messages for missing get/set accessors
BsonObjectId
changed to match new ObjectId internal representation
BsonReader (and BsonBinaryReader)
added CurrentBsonType property
removed HasElement and PeekBsonType (were causing duplicate reads)
revised bookmark API (GetBookmark/ReturnToBookmark)
element name and value can now be read separately
(needed to unify DeserializeDocument/DeserializeElement)
ReadObjectId changed to match new ObjectId internal representation
added SkipName and SkipValue methods
added ReadBsonType and ReadName methods
added new array methods (ReadStartArray, ReadEndArray)
separated Bookmark class from Context class
BsonRegularExpression
detects options in pattern (e.g. "/Hello/i")
BsonSerializer
Same changes as IBsonSerializer
Added RegisterIdConvention (moved from BsonDefaultSerializer)
BsonValue
added serialization logic (moved from BsonElement)
BsonWriter (and BsonBinaryWriter, BsonJsonWriter)
element name and value can now be written separately
(needed to unify SerializeDocument/SerializeElement)
added WriteName method
WriteObjectId changed to match new ObjectId internal representation
added new array methods (WriteStartArray, WriteEndArray)
Document ID detection and handling
replaced DocumentHasIdMember, DocumentHasIdValue and GenerateDocumentId
with GetDocumentId and SetDocumentId
IBsonIdGeneratorConvention
shortened to IIdGeneratorConvention
IBsonSerializable/IBsonSerializer
Document/Element distinction removed from serialization
DeserializeDocument/DeserializeElement now just Deserialize
SerializeDocument/SerializeElement now just Serialize
IDiscriminatorConvention
GetActualDocumentType/GetActualElementType combined into single GetActualType
Improved Enum serialization
added 64 bit representation
forgiving deserialization automatically converts between numeric types
doubles supported during deserialization (JavaScript related)
New IdGenerators
NullIdChecker
ZeroIdChecker
Nullable type serialization
now uses a generic serializer
ObjectId
new internal representation:
int: timestamp
int: machine (only low order 3 bytes used)
short: pid
int: increment (only low order 3 bytes used)
new representation is much more efficient (no shifting and masking)
new representation serializes correctly to JavaScript clients
only two bytes larger (and additional bytes are not on heap but embedded in object)
PublicMemberFinderConvention
ignore indexers
ignore overridden properties (base class already serializes them)
Serialization support for additional .NET classes
legacy Dictionary classes
generic Dictionary classess
BitArray
ByteArray
Uri
Version
Driver Changes:
Builders
Most have a Null static property
All have a new Wrap method (see marker interfaces)
CommandResult (and subclasses)
Subclass of BsonDocument
Holds results of RunCommand
Subclasses used to pick out details of results in a type safe way
MongoCollection
Improved compile time type safety
Replaced TQuery with IMongoQuery
Replaced TIndexKeys/Options with IMongoIndexKeys/Options
Replaced TSortBy with IMongoSortBy
Replaced TUpdate with IMongoUpdate
Replaced TFields with IMongoFields
Replaced TGroupBy with IMongoGroupBy
Update methods now return a SafeModeResult
Added FindOneById and FindOneByIdAs
GetStats now returns CollectionStatsResult
Implemented GetTotalDataSize and GetTotalStorageSize
Fixed IdGenerator related bugs
MongoCommandException
CommandResult is now added to Data property
MongoConnection
Use IPEndPoint instead of MongoServerAddress
new RunCommand internal helper method
MongoConnectionPool
use IPEndPoint instead of MongoServerAddress
moved RequestStart/Done to MongoServer
MongoConnectionSettings removed
a similar class is MongoUrlBuilder
MongoCursor
Type is now MongoCursor<TDocument> not MongoCursor<TQuery, TDocument>
SetFields parameter is now IMongoFields
SetSortOrder parameter is now IMongoSortBy
Added support to distribute reads to replica set secondaries when slaveok=true
MongoDatabase
Now immutable (e.g. can't change SafeMode once created)
Route commands to primary even when slaveok=true
RunCommand parameter now IMongoCommand
RunCommand now returns CommandResult
RunCommandAs used to return subclass of CommandResult
GetStats now returns DatabaseStatsResult
MongoDelete/Insert/Query/UpdateMessage
Replaced TQuery with IMongoQuery
Replaced TFields with IMongoFields
Replaced TUpdate with IMongoUpdate
MongoGridFS
Immutable (e.g. can't change SafeMode once created)
Replace TQuery with IMongoQuery
New methods: AppendText, CopyTo, Create, CreateText, ExistsById, FindOneById, FindAll,
MoveTo, Open, OpenRead, OpenText, OpenWrite, SetAliases, SetContentType, SetMetadata
(note: not all implemented yet)
MongoGridFSCreateOptions
Used when creating new MongoGridFSStreams
MongoGridFSFileInfo
Added Aliases, ContentType and Metadata
Implemented !=, ==
Implemented GetHashcode, Equals (can be used as Dictionary key)
MongoGridFSSettings
Added Freeze method
MongoGridFSStream
Initial implementation of Stream interface to GridFS files
MongoServer
Now immutable (e.g. can't change SafeMode once created)
MongoUrl is used as identity of server instance
Support multiple connection pools (used when distributing reads to secondaries)
Added support for connection modes: direct and replica set
Added RequestStart/RequestDone (moved from MongoConnectionPool)
RunAdminCommand parameter now IMongoCommnad
RunAdminCommand now returns CommandResult
RunAdminCommandAs used to return subclass of CommandResult
MongoUrl
Support new connection string options
Immutable
Implements GetHashcode and Equals (can be used as Dictionary key)
MongoUrlBuilder
Used to build MongoUrls
Mutable
New connection mode classes
DirectConnector and ReplicaConnector
classes encapsulate connection mode logic
New marker interfaces
These are used to give parameters strong types while still allowing
many actual types to be used as arguments
Each marker interface has a new subclass of BsonDocument
Each marker interface has a new wrapper class
Replaces unconstrained generic type parameters
QueryFlags
Enum values were all wrong (shifted one bit to the right)

4
packages/makepackages.bat

@ -1,4 +1,4 @@
set VER=0.7.0.3959
set VER=0.9.0.3992
set PACKAGES=packages-%VER%
echo Creating %PACKAGES%
@ -12,7 +12,7 @@ ren %PACKAGES%\CSharpDriver.msi CSharpDriver-%VER%.msi
set ZIPEXE="C:\Program Files\7-Zip\7z.exe"
set ZIPFILE=%PACKAGES%\CSharpDriver-%VER%.zip
%ZIPEXE% a %ZIPFILE% ..\License.txt
%ZIPEXE% a %ZIPFILE% "..\Release Notes v0.7.txt"
%ZIPEXE% a %ZIPFILE% "..\Release Notes v0.9.txt"
%ZIPEXE% a %ZIPFILE% ..\Driver\bin\Debug\MongoDB.Bson.dll
%ZIPEXE% a %ZIPFILE% ..\Driver\bin\Debug\MongoDB.Driver.dll

Loading…
Cancel
Save