No the ObjectId in from the object (
DBContentBase insertObject) I insert is still empty and in the Task object after the wait() I did not find the Id. In the Database itself the object is inserted with a generated id.
I insert a Person
Source snippets of the classes:
public class DBContentBase
{
public ObjectId Id { get; set; }
public int DBVersion { get; set; }
public DateTimeOffset Created { get; set; }
public DateTimeOffset Updated { get; set; }
}
public class Person : DBContentBase
{
public string FirstName { get; set; }
public string LastName { get; set; }
public string Info { get; set; }
public string Concatenated { get; set; }
public DateTimeOffset DateOfBirth { get; set; }
public DateTimeOffset Marriage { get; set; }
public int Age { get; set; }
public string Profession { get; set; }