[C# driver] Guid id is not generated on document insert after OfType

8 views
Skip to first unread message

lisi...@gmail.com

unread,
Jan 23, 2018, 6:02:53 AM1/23/18
to mongodb-user
Hi,

According to documentation, OfType has next description:
"All operations using this filtered collection will automatically use discriminators as necessary"

and it is true for most cases except document insert.

The problem is that OfTypeSerializer don't realize IBsonIdProvider interface and as a result on document insert it don't provide any id.
Reply all
Reply to author
Forward
0 new messages