Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Update to MongoDB Driver 1.5

  • Loading branch information...
commit 132298e3885da2394ce19ef7fe49de669f053014 1 parent df91212
@CaptainCodeman authored
View
2  src/mongodb/MongoResponseCache.cs
@@ -16,7 +16,7 @@ public class MongoResponseCache : IResponseCache
public MongoResponseCache(string connectionString)
{
- BsonDefaultSerializer.RegisterDiscriminatorConvention(typeof(Response), new TypeDiscriminatorConvention());
+ BsonSerializer.RegisterDiscriminatorConvention(typeof(Response), new TypeDiscriminatorConvention());
BsonClassMap.RegisterClassMap<Response>(cm =>
{
View
2  src/mongodb/TypeDiscriminatorConvention.cs
@@ -18,7 +18,7 @@ public Type GetActualType(BsonReader bsonReader, Type nominalType)
if (bsonReader.FindElement("Type"))
{
var discriminator = BsonValue.ReadFrom(bsonReader);
- actualType = BsonDefaultSerializer.LookupActualType(nominalType, discriminator);
+ actualType = BsonSerializer.LookupActualType(nominalType, discriminator);
}
bsonReader.ReturnToBookmark(bookmark);
return actualType;
View
8 src/mongodb/mongodb.csproj
@@ -33,13 +33,13 @@
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<ItemGroup>
- <Reference Include="MongoDB.Bson, Version=1.4.3.16211, Culture=neutral, PublicKeyToken=f686731cfb9cc103, processorArchitecture=MSIL">
+ <Reference Include="MongoDB.Bson, Version=1.5.0.4566, Culture=neutral, PublicKeyToken=f686731cfb9cc103, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
- <HintPath>..\packages\mongocsharpdriver.1.4.3\lib\net35\MongoDB.Bson.dll</HintPath>
+ <HintPath>..\packages\mongocsharpdriver.1.5\lib\net35\MongoDB.Bson.dll</HintPath>
</Reference>
- <Reference Include="MongoDB.Driver, Version=1.4.3.16211, Culture=neutral, PublicKeyToken=f686731cfb9cc103, processorArchitecture=MSIL">
+ <Reference Include="MongoDB.Driver, Version=1.5.0.4566, Culture=neutral, PublicKeyToken=f686731cfb9cc103, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
- <HintPath>..\packages\mongocsharpdriver.1.4.3\lib\net35\MongoDB.Driver.dll</HintPath>
+ <HintPath>..\packages\mongocsharpdriver.1.5\lib\net35\MongoDB.Driver.dll</HintPath>
</Reference>
<Reference Include="System" />
<Reference Include="System.Core" />
View
2  src/mongodb/packages.config
@@ -1,4 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<packages>
- <package id="mongocsharpdriver" version="1.4.3" targetFramework="net40" />
+ <package id="mongocsharpdriver" version="1.5" targetFramework="net40" />
</packages>
View
5 src/sample/sample.csproj
@@ -65,8 +65,9 @@
<CodeAnalysisRuleDirectories>;C:\Program Files (x86)\Microsoft Visual Studio 10.0\Team Tools\Static Analysis Tools\FxCop\\Rules</CodeAnalysisRuleDirectories>
</PropertyGroup>
<ItemGroup>
- <Reference Include="Common.Logging, Version=2.0.0.0, Culture=neutral, PublicKeyToken=af08829b84f0328e, processorArchitecture=MSIL">
- <HintPath>..\packages\Common.Logging.2.0.0\lib\2.0\Common.Logging.dll</HintPath>
+ <Reference Include="Common.Logging, Version=2.1.1.0, Culture=neutral, PublicKeyToken=af08829b84f0328e, processorArchitecture=MSIL">
+ <SpecificVersion>False</SpecificVersion>
+ <HintPath>..\packages\Common.Logging.2.1.1\lib\net40\Common.Logging.dll</HintPath>
</Reference>
<Reference Include="System" />
<Reference Include="System.configuration" />
Please sign in to comment.
Something went wrong with that request. Please try again.