Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Give the driver a real version number. AssemblyInfoGlobal have to be …

…updated at every release.
  • Loading branch information...
commit 92e091f06a5f2ad35dc521bb831214722017ae63 1 parent b0e483a
@lanwin lanwin authored
View
16 AssemblyInfoGlobal.cs
@@ -0,0 +1,16 @@
+using System.Reflection;
+
+// Information about this assembly is defined by the following attributes.
+// Change them to the values specific to your project.
+
+[assembly: AssemblyConfiguration("")]
+[assembly: AssemblyCompany("")]
+[assembly: AssemblyCopyright("")]
+[assembly: AssemblyTrademark("")]
+[assembly: AssemblyCulture("")]
+
+// The assembly version has the format "{Major}.{Minor}.{Build}.{Revision}".
+// The form "{Major}.{Minor}.*" will automatically update the build and revision,
+// and "{Major}.{Minor}.{Build}.*" will update just the revision.
+
+[assembly: AssemblyVersion("0.82.2")]
View
17 MongoDB.GridFS/AssemblyInfo.cs
@@ -4,19 +4,8 @@
// Information about this assembly is defined by the following attributes.
// Change them to the values specific to your project.
-[assembly: AssemblyTitle("MongoDB.GridFS")]
-[assembly: AssemblyDescription("")]
-[assembly: AssemblyConfiguration("")]
-[assembly: AssemblyCompany("")]
-[assembly: AssemblyProduct("")]
-[assembly: AssemblyCopyright("")]
-[assembly: AssemblyTrademark("")]
-[assembly: AssemblyCulture("")]
-
-// The assembly version has the format "{Major}.{Minor}.{Build}.{Revision}".
-// The form "{Major}.{Minor}.*" will automatically update the build and revision,
-// and "{Major}.{Minor}.{Build}.*" will update just the revision.
-
-[assembly: AssemblyVersion("1.0.*")]
+[assembly: AssemblyTitle("MongoDB.GridFS")]
+[assembly: AssemblyDescription("GridFS implementation for MongoDB.Driver")]
+[assembly: AssemblyProduct("MongoDB.GridFS")]
[assembly: InternalsVisibleTo("MongoDB.GridGS.Tests, PublicKey=0024000004800000940000000602000000240000525341310004000001000100ed9e936c4563336be2e14ca802ea727ff49cad3bb1c0b287beed2a9b5eb823c4c44becc80be4bb11dcd7e49d5d6171f68b488853dcbdeb3152ea3db95ba13a70855a715ee21ac76b67f50bcbc93f2e29e409530a00b98fa79b06ac008dd1f4f3582ba6746af3d218b43b70a63254b094be1a2d493590837273f357fc56b2a7a0")]
View
3  MongoDB.GridFS/MongoDB.GridFS.csproj
@@ -62,6 +62,9 @@
<Reference Include="System" />
</ItemGroup>
<ItemGroup>
+ <Compile Include="..\AssemblyInfoGlobal.cs">
+ <Link>AssemblyInfoGlobal.cs</Link>
+ </Compile>
<Compile Include="AssemblyInfo.cs" />
<Compile Include="GridFile.cs" />
<Compile Include="GridFileInfo.cs" />
View
17 MongoDB.Linq/AssemblyInfo.cs
@@ -4,19 +4,8 @@
// Information about this assembly is defined by the following attributes.
// Change them to the values specific to your project.
-[assembly: AssemblyTitle("MongoDB.Linq")]
-[assembly: AssemblyDescription("")]
-[assembly: AssemblyConfiguration("")]
-[assembly: AssemblyCompany("")]
-[assembly: AssemblyProduct("")]
-[assembly: AssemblyCopyright("")]
-[assembly: AssemblyTrademark("")]
-[assembly: AssemblyCulture("")]
-
-// The assembly version has the format "{Major}.{Minor}.{Build}.{Revision}".
-// The form "{Major}.{Minor}.*" will automatically update the build and revision,
-// and "{Major}.{Minor}.{Build}.*" will update just the revision.
-
-[assembly: AssemblyVersion("1.0.*")]
+[assembly: AssemblyTitle("MongoDB.Linq")]
+[assembly: AssemblyDescription("Linq implementation for MongoDB.Driver")]
+[assembly: AssemblyProduct("MongoDB.Linq")]
[assembly: InternalsVisibleTo("MongoDB.Linq.Tests, PublicKey=0024000004800000940000000602000000240000525341310004000001000100ed9e936c4563336be2e14ca802ea727ff49cad3bb1c0b287beed2a9b5eb823c4c44becc80be4bb11dcd7e49d5d6171f68b488853dcbdeb3152ea3db95ba13a70855a715ee21ac76b67f50bcbc93f2e29e409530a00b98fa79b06ac008dd1f4f3582ba6746af3d218b43b70a63254b094be1a2d493590837273f357fc56b2a7a0")]
View
3  MongoDB.Linq/MongoDB.Linq.csproj
@@ -72,6 +72,9 @@
<Reference Include="System.Xml" />
</ItemGroup>
<ItemGroup>
+ <Compile Include="..\AssemblyInfoGlobal.cs">
+ <Link>AssemblyInfoGlobal.cs</Link>
+ </Compile>
<Compile Include="AssemblyInfo.cs" />
<Compile Include="ExpressionTreeVisitor.cs" />
<Compile Include="MongoDocumentQuery.cs" />
View
22 MongoDBDriver/AssemblyInfo.cs
@@ -3,24 +3,12 @@
using System.Runtime.CompilerServices;
using System.Security.Permissions;
-
// Information about this assembly is defined by the following attributes.
-// Change them to the values specific to your project.
-
-[assembly: AssemblyTitle("MongoDBDriver")]
-[assembly: AssemblyDescription("")]
-[assembly: AssemblyConfiguration("")]
-[assembly: AssemblyCompany("")]
-[assembly: AssemblyProduct("")]
-[assembly: AssemblyCopyright("")]
-[assembly: AssemblyTrademark("")]
-[assembly: AssemblyCulture("")]
-
-// The assembly version has the format "{Major}.{Minor}.{Build}.{Revision}".
-// The form "{Major}.{Minor}.*" will automatically update the build and revision,
-// and "{Major}.{Minor}.{Build}.*" will update just the revision.
-
-[assembly: AssemblyVersion("1.0.*")]
+// Change them to the values specific to your project.
+
+[assembly: AssemblyTitle("MongoDB.Driver")]
+[assembly: AssemblyDescription("MongoDB.Driver for C#")]
+[assembly: AssemblyProduct("MongoDB.Driver")]
// The following attributes are used to specify the signing key for the assembly,
// if desired. See the Mono documentation for more information about signing.
View
3  MongoDBDriver/MongoDB.Driver.csproj
@@ -94,6 +94,9 @@
<Reference Include="System.Configuration" />
</ItemGroup>
<ItemGroup>
+ <Compile Include="..\AssemblyInfoGlobal.cs">
+ <Link>AssemblyInfoGlobal.cs</Link>
+ </Compile>
<Compile Include="Bson\BsonDataType.cs" />
<Compile Include="Bson\BsonInfo.cs" />
<Compile Include="Bson\BsonDocumentBuilder.cs" />
View
10 MongoDBDriver/Serialization/SerializationFactory.cs
@@ -20,16 +20,18 @@ public class SerializationFactory : ISerializationFactory
/// Initializes a new instance of the <see cref="SerializationFactory"/> class.
/// </summary>
public SerializationFactory()
- : this(null)
+ : this(new AutoMappingStore())
{ }
/// <summary>
/// Initializes a new instance of the <see cref="SerializationFactory"/> class.
/// </summary>
/// <param name="mappingStore">The mapping store.</param>
- public SerializationFactory(IMappingStore mappingStore)
- {
- _mappingStore = mappingStore ?? new AutoMappingStore();
+ public SerializationFactory(IMappingStore mappingStore){
+ if(mappingStore == null)
+ throw new ArgumentNullException("mappingStore");
+
+ _mappingStore = mappingStore;
}
/// <summary>
Please sign in to comment.
Something went wrong with that request. Please try again.