Skip to content

Instantly share code, notes, and snippets.

View rstam's full-sized avatar

Robert Stam rstam

View GitHub Profile
@rstam
rstam / 1.x
Created October 21, 2014 22:09
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using MongoDB.Bson;
using MongoDB.Bson.Serialization;
using MongoDB.Driver;
using MongoDB.Driver.Builders;
public class BulkWriteResult
{
public bool IsOrdered { get; }
public int DocumentsAffectedCount { get; }
public IList<WriteRequest> ProcessedRequests { get; }
public IList<BulkWriteUpsert> Upserts { get; }
}
public class BulkWriteException : Exception
{
@rstam
rstam / gist:745108
Created December 17, 2010 15:29
TestSerializePrivateMembers.cs
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using MongoDB.Bson;
using MongoDB.Bson.DefaultSerializer;
using MongoDB.Bson.Serialization;
using MongoDB.Driver;
@rstam
rstam / gist:745065
Created December 17, 2010 15:02
TestSerializeUserIdAsInt.cs
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using MongoDB.Bson;
using MongoDB.Bson.DefaultSerializer;
using MongoDB.Bson.IO;
using MongoDB.Bson.Serialization;
using MongoDB.Driver;
using System;
using MongoDB.Bson;
using MongoDB.Bson.DefaultSerializer;
using MongoDB.Bson.IO;
using MongoDB.Bson.Serialization;
using MongoDB.Driver;
using MongoDB.Driver.Builders;
namespace ConsoleApplication1 {
using System;
using MongoDB.Bson;
using MongoDB.Bson.DefaultSerializer;
using MongoDB.Bson.Serialization;
using MongoDB.Driver;
namespace ConsoleApplication1 {
public class Model {
public DateTime DateTimeProperty { get; set; }