<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Wed Feb 07 21:37:22 UTC 2024

It is possible to restrict the fields that are returned in this document by specifying the 'field' parameter in your request.
For example, to request only the issue key and summary append 'field=key&field=summary' to the URL of your request.
-->
<rss version="0.92" >
<channel>
    <title>MongoDB Jira</title>
    <link>https://jira.mongodb.org</link>
    <description>This file is an XML representation of an issue</description>
    <language>en-us</language>    <build-info>
        <version>9.7.1</version>
        <build-number>970001</build-number>
        <build-date>13-04-2023</build-date>
    </build-info>


<item>
            <title>[CSHARP-623] DOCS: BsonClassMap.RegisterClassMap to support WCF DataContract/DataMember attributes</title>
                <link>https://jira.mongodb.org/browse/CSHARP-623</link>
                <project id="10041" key="CSHARP">C# Driver</project>
                    <description>&lt;p&gt;We have a lot of classes where the members is decorated with &lt;span class=&quot;error&quot;&gt;&amp;#91;DataMember&amp;#93;&lt;/span&gt;. It would be very nice if there was a AutoWcfMap in BsonClassMap that works as AutoMap but that looks at &lt;span class=&quot;error&quot;&gt;&amp;#91;DataMember&amp;#93;&lt;/span&gt; attributes instead. &lt;/p&gt;

&lt;p&gt;Example:&lt;br/&gt;
BsonClassMap.RegisterClassMap&amp;lt;MyClass&amp;gt;(cm =&amp;gt; cm.AutoWcfMap());&lt;/p&gt;

&lt;p&gt;Would iterate over all members (public/private fields/properties) and see look for the DataMember attribute and call SetElementName, SetOrder, SetDefaultValue etc. &lt;/p&gt;

&lt;p&gt;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.&lt;/p&gt;

</description>
                <environment></environment>
        <key id="55207">CSHARP-623</key>
            <summary>DOCS: BsonClassMap.RegisterClassMap to support WCF DataContract/DataMember attributes</summary>
                <type id="2" iconUrl="https://jira.mongodb.org/secure/viewavatar?size=xsmall&amp;avatarId=14711&amp;avatarType=issuetype">New Feature</type>
                                            <priority id="3" iconUrl="https://jira.mongodb.org/images/icons/priorities/major.svg">Major - P3</priority>
                        <status id="6" iconUrl="https://jira.mongodb.org/images/icons/statuses/closed.png" description="The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.">Closed</status>
                    <statusCategory id="3" key="done" colorName="success"/>
                                    <resolution id="2">Won&apos;t Fix</resolution>
                                        <assignee username="-1">Unassigned</assignee>
                                    <reporter username="mbertelsen">Michael Bertelsen</reporter>
                        <labels>
                    </labels>
                <created>Sun, 4 Nov 2012 14:35:27 +0000</created>
                <updated>Fri, 2 Feb 2018 15:44:37 +0000</updated>
                            <resolved>Fri, 2 Feb 2018 15:44:37 +0000</resolved>
                                    <version>1.6.1</version>
                                                    <component>Serialization</component>
                                        <votes>0</votes>
                                    <watches>1</watches>
                                                                                                                <comments>
                            <comment id="1793248" author="rstam" created="Fri, 2 Feb 2018 15:44:37 +0000"  >&lt;p&gt;There are no current plans to support DataContract based serialization.&lt;/p&gt;</comment>
                            <comment id="182444" author="craiggwilson" created="Mon, 5 Nov 2012 13:15:57 +0000"  >&lt;p&gt;You are completely free to write a convention to do this.  See the docs here: &lt;a href=&quot;http://www.mongodb.org/display/DOCS/CSharp+Driver+Serialization+Tutorial#CSharpDriverSerializationTutorial-Conventions&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://www.mongodb.org/display/DOCS/CSharp+Driver+Serialization+Tutorial#CSharpDriverSerializationTutorial-Conventions&lt;/a&gt; for information on how to do that.&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10012">
                    <name>Related</name>
                                                                <inwardlinks description="is related to">
                                        <issuelink>
            <issuekey id="67551">CSHARP-696</issuekey>
        </issuelink>
                            </inwardlinks>
                                    </issuelinktype>
                    </issuelinks>
                <attachments>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                                                                                                                                                                                        <customfield id="customfield_10011" key="com.atlassian.jira.plugin.system.customfieldtypes:radiobuttons">
                        <customfieldname>Backwards Compatibility</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="10038"><![CDATA[Fully Compatible]]></customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                <customfield id="customfield_15850" key="com.atlassian.jira.plugins.jira-development-integration-plugin:devsummary">
                        <customfieldname>Development</customfieldname>
                        <customfieldvalues>
                            
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    <customfield id="customfield_12550" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2|hs0t9j:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10558" key="com.pyxis.greenhopper.jira:gh-global-rank">
                        <customfieldname>Rank (Obsolete)</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>129188</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            </customfields>
    </item>
</channel>
</rss>