I’m not quite sure what you’re looking for. If you’re looking to have an id field _id with the value of Guid instead of the default ObjectId, you try the following example:
public class Car
{
public Guid Id {get; set;}
public string Name {get; set;}
}
On insert, this should create a document example as below:
oh… I try this a few years ago and nothing work with many exceptions…
Today with last mongodb.driver all work from ‘box’ how need in my question.
Thx! Sorry to hurry!