It says here (http://mongodb.github.io/mongo-csharp-driver/2.2/reference/bson/mapping/#id-generators) that the driver should use one of the builtin ID generators to generate a new ID for properties ID, id, _id (convention).
I have a model with
public string Id { get;set; }
and the automatic ID generation is not happening. Inserted document has an ID of null.
Snippet from my repository code:
public void Save<TEntity>(TEntity item) where TEntity : class, new()
{
var collection = GetCollection<TEntity>();
collection.InsertOne(item);
}