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);