Subversion Repositories blog-sources

Compare Revisions

Ignore whitespace Rev 8 → Rev 9

/mono-mongodb/Race/Race/Main.cs
1,5 → 1,6
using System;
 
using MongoDB.Bson.Serialization;
using MongoDB.Driver;
 
namespace Race
8,6 → 9,15
{
public static void Main (string[] args)
{
BsonClassMap.RegisterClassMap<Participant>
(
cm =>
{
cm.AutoMap();
cm.GetMemberMap(c => c.Email).SetIgnoreIfNull(true);
}
);
 
// Get a Reference to the Client Object.
string connectionString = "mongodb://localhost";
MongoClient client = new MongoClient(connectionString);
/mono-mongodb/Race/Race/Race.csproj
35,6 → 35,9
<Reference Include="MongoDB.Driver">
<HintPath>..\..\..\Downloads\CSharpDriver-1.9-rc0\MongoDB.Driver.dll</HintPath>
</Reference>
<Reference Include="MongoDB.Bson">
<HintPath>..\..\..\Downloads\CSharpDriver-1.9-rc0\MongoDB.Bson.dll</HintPath>
</Reference>
</ItemGroup>
<ItemGroup>
<Compile Include="Main.cs" />