True, but if it's not one of these:
1. An ObjectId
2. A Guid
3. A String with an external representation of BsonType.ObjectId
then you have to make sure you assign a value to the Id yourself
before calling Save or Insert.
For these three cases the driver can generate the Id value for you
automatically (which it will only do if you haven't already assigned a
value to the Id).
On Mar 5, 11:35 pm, Joseph Good <
joe.d.g...@gmail.com> wrote:
> You can also just use one named "Id".
> It does not have to be an ObjectId type.
>
> On Sat, Mar 5, 2011 at 5:19 PM, nicholas brooke-wood <
>
>
nickbrookew...@gmail.com> wrote:
> > we use an Id of type Guid on our pocos, and the deserialiation works fine,
> > we have no reference to the driver
>