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

Identify Bson*Attributes from C# Driver and map to EF using convention

    • Type: Icon: New Feature New Feature
    • Resolution: Fixed
    • Priority: Icon: Unknown Unknown
    • 8.0.0
    • Affects Version/s: None
    • None
    • Dotnet Drivers

      First round

      (Can do right now)

      • BsonElement("name") -> SetElementName("name")
      • BsonDateTimeOptions(Kind) -> SetDateTimeKind(Kind) - KIND only
      • BsonId -> SetPrimaryKey - No order/custom generator support
      • BsonIgnoreAttribute        -> Ignore()
      • BsonRequired            -> Required()

      Second round

      (Require more features to be supported inside our EF driver first)

      • BsonDiscriminator (Requires EF-80)
      • BsonDefaultValue (Requires we add HasDefaultValue semantics)
      • BsonGuidRepresentation (Requires Guid config options)
      • BsonTimeSpanOptionsAttribute (Requires TimeSpan config options)

      Won't support

      These make no sense to support as they don't have an equivalent in EF.

      • BsonConstructor
      • BsonExtraElements
      • BsonFactoryMethod
      • BsonIgnoreExtraElements
      • BsonIgnoreIfDefault
      • BsonIgnoreIfNull
      • BsonKnownTypes
      • BsonMemberMap
      • BsonRepresentation
      • BsonSerializationOptions
      • BsonSerializerAttribute

            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: