-
Type:
New Feature
-
Resolution: Won't Fix
-
Priority:
Major - P3
-
None
-
Affects Version/s: 1.6.1
-
Component/s: Serialization
-
None
-
None
-
Fully Compatible
-
None
-
None
-
None
-
None
-
None
-
None
We have a lot of classes where the members is decorated with [DataMember]. It would be very nice if there was a AutoWcfMap in BsonClassMap that works as AutoMap but that looks at [DataMember] attributes instead.
Example:
BsonClassMap.RegisterClassMap<MyClass>(cm => cm.AutoWcfMap());
Would iterate over all members (public/private fields/properties) and see look for the DataMember attribute and call SetElementName, SetOrder, SetDefaultValue etc.
If the type have a member-type that is marked with the DataContract attribute and it is not currently a part of the registered types it should automatically map it too.
- is related to
-
CSHARP-696 Allow serialization to take into the XmlIgnore attribute
-
- Closed
-