-
Type: Bug
-
Resolution: Fixed
-
Priority: Unknown
-
Affects Version/s: 8.0.3
-
None
-
Dotnet Drivers
When owned entities are being serialized in EF using CamelCaseElementNameConvention, the resulting MongoDB object is using the class name instead of the property name. This is causing an exception if more than one property of the owning class has the same class.
public class TestEntity { public string Id { get; set; } public string Name { get; set; } public SubEntity SubEntity1 { get; set; } public SubEntity SubEntity2 { get; set; } } public class SubEntity : ISubEntity { public int Value { get; set; }public string Text { get; set; } }