Problem mapping classes with .NET driver 2.11.0

Hi wan,
Thanks for your reply.
I expect that the property Id will convert to string type when reading data from the database and will convert the string type back to an ObjectId type when writing data to the database.
The operation is insert a new data into database, for example, this is my class named MyClass
public class MyClass
{
public string Id { get; set; }
public string Name { get; set; }
}
this is the entity
var myClass = new MyClass{ Name = "testClass" };
when i use attribute [BsonRepresentation(BsonType.ObjectId)] it will create a new objectId automatic but when i use lambda expressions to register it won’t create new id, it will insert a null value. Must i create a new objectId value manual?