Uploaded image for project: 'Entity Framework'
  1. Entity Framework
  2. EF-195

Support configuration-level HasBsonRepresentation

    • Type: Icon: Improvement Improvement
    • Resolution: Done
    • Priority: Icon: Unknown Unknown
    • 8.3.0, 9.0.0
    • Affects Version/s: None
    • None
    • None
    • Dotnet Drivers
    • None
    • None
    • None
    • None
    • None
    • None

      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.

            Assignee:
            damien.guard@mongodb.com Damien Guard
            Reporter:
            damien.guard@mongodb.com Damien Guard
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: