Hi Joel,
Thank you for your response.
Since I am using DDD for my services, I can’t add an attribute to our Aggregate Roots, Entities, and Value Objects. That would pollute the Aggregates with concerns that are beyond the Domain.
Is there a way to set the GuidRepresentation directly (it seems like there was something like that, but it is now deprecated) to the Client/Database/Collection?
I hoped the global setting for the GuidRepresentation and GuidRepresentationMode would work with the DbContext.
Even though I am passing the explicitly instantiated Mongo client during DI, which should assume the global settings, the GuidRepresentation remains Unspecified.
I am unsure whether I can assign an attribute to the properties during the DbContext model configuration (DbContext mapping).
Thanks,
Jose