Right now individual properties must be configured with HasBsonRepresentation on each one.
Adding a HaveBsonRepresentation extensions on the PropertiesConfigurationBuilder would allow users to specify this at a type-level rather than a property level, e.g.
cb.Properties<DateTimeOffset>().HaveBsonRepresentation(BsonType.Int64)
This PR was created to reflect GitHub PR contribution 193.
- is cloned by
-
EF-196 Support configuration-level HasDateTimeKind
-
- Closed
-