<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Wed Feb 07 21:35:41 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-56] Mapping of subclass members doesn&apos;t work </title>
                <link>https://jira.mongodb.org/browse/CSHARP-56</link>
                <project id="10041" key="CSHARP">C# Driver</project>
                    <description>&lt;p&gt;Consider this mapping of a subclass that has a property that I want ignored:&lt;/p&gt;

&lt;p&gt; mapping.DefaultProfile(profile =&amp;gt;&lt;br/&gt;
                        &lt;/p&gt;
{
                            profile.SubClassesAre(t =&amp;gt; t.IsSubclassOf(typeof(MyAbstract))); 
                        }
&lt;p&gt;);&lt;br/&gt;
                    mapping.Map&amp;lt;MyConcrete&amp;gt;(c =&amp;gt;&lt;br/&gt;
                        &lt;/p&gt;
{
                            c.Member(x =&amp;gt; x.MyProperty).Ignore();
                        }
&lt;p&gt;);&lt;/p&gt;

&lt;p&gt;The MyProperty of MyConcrete (which is a subclass of MyAbstract) doesn&#180;t get ignored until I add this:&lt;/p&gt;

&lt;p&gt;                    mapping.Map&amp;lt;MyAbstract&amp;gt;(f =&amp;gt;&lt;br/&gt;
                        &lt;/p&gt;
{
                            f.Member(x =&amp;gt; x.MyProperty).Ignore();
                        }
&lt;p&gt;);&lt;/p&gt;

&lt;p&gt;This is works for my case but I can foresee cases where I would want one concrete class to ignore this property of the abstract while I would want to include it in another.&lt;/p&gt;</description>
                <environment>Windows</environment>
        <key id="12793">CSHARP-56</key>
            <summary>Mapping of subclass members doesn&apos;t work </summary>
                <type id="1" iconUrl="https://jira.mongodb.org/secure/viewavatar?size=xsmall&amp;avatarId=14703&amp;avatarType=issuetype">Bug</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="craig.wilson@mongodb.com">Craig Wilson</assignee>
                                    <reporter username="nisbus">nisbus</reporter>
                        <labels>
                    </labels>
                <created>Sat, 14 Aug 2010 22:38:58 +0000</created>
                <updated>Wed, 19 Oct 2016 14:16:05 +0000</updated>
                            <resolved>Wed, 8 Sep 2010 20:09:07 +0000</resolved>
                                                                                        <votes>0</votes>
                                    <watches>0</watches>
                                                                                                                <comments>
                            <comment id="17914" author="craiggwilson" created="Wed, 8 Sep 2010 20:09:07 +0000"  >&lt;p&gt;This is by design.  We map based on the base class&apos;s member because otherwise the linq provider wouldn&apos;t react properly.  Therefore, anything in a base class that is not ignored will be persisted.  &lt;/p&gt;</comment>
                    </comments>
                    <attachments>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                                                                                                                                                                                                                                                                                                                                    <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|hrh9yf:</customfieldvalue>

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