public override byte[] ToBsonByteArray() { if (this.Id == null) { this.GenerateId(); } return base.ToBsonByteArray(); }