<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Wed Feb 07 21:36:51 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-442] how to convert &quot;MongoDB.Bson.BsonValue&quot; to &quot;System.Data.Linq.Binary&quot; using C#?</title>
                <link>https://jira.mongodb.org/browse/CSHARP-442</link>
                <project id="10041" key="CSHARP">C# Driver</project>
                    <description>&lt;p&gt;foreach (BsonDocument item in VillageColl.FindAll())&lt;br/&gt;
                {&lt;br/&gt;
                    Village ObjVillage = new Village();&lt;/p&gt;

&lt;p&gt;                    var test = item.GetElement(&quot;Village_Map&quot;).Value.ToString();&lt;/p&gt;

&lt;p&gt;                    ObjVillage.Village_ID = item.GetElement(&quot;Village_ID&quot;).Value.ToString();&lt;br/&gt;
                    ObjVillage.Taluka_ID = item.GetElement(&quot;Taluka_ID&quot;).Value.ToString();&lt;br/&gt;
                    ObjVillage.Village_Name = item.GetElement(&quot;Village_Name&quot;).Value.ToString();&lt;br/&gt;
                    ObjVillage.Village_Map = item.GetElement(&quot;Village_Map&quot;).Value;&lt;br/&gt;
                    ObjVillage.Subcenter_ID = Convert.ToDecimal(item.GetElement(&quot;Subcenter_ID&quot;).Value);**** Here i getting conversion error i.e. Con&apos;t implicitly convert &quot;MongoDB.Bson.BsonValue&quot; to &quot;System.Data.Linq.Binary&quot;.&lt;/p&gt;</description>
                <environment></environment>
        <key id="36173">CSHARP-442</key>
            <summary>how to convert &quot;MongoDB.Bson.BsonValue&quot; to &quot;System.Data.Linq.Binary&quot; using C#?</summary>
                <type id="3" iconUrl="https://jira.mongodb.org/secure/viewavatar?size=xsmall&amp;avatarId=14718&amp;avatarType=issuetype">Task</type>
                                            <priority id="2" iconUrl="https://jira.mongodb.org/images/icons/priorities/critical.svg">Critical - P2</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="9">Done</resolution>
                                        <assignee username="robert@mongodb.com">Robert Stam</assignee>
                                    <reporter username="mahendar.gunda">mahendar.gunda</reporter>
                        <labels>
                            <label>question</label>
                    </labels>
                <created>Fri, 13 Apr 2012 09:17:28 +0000</created>
                <updated>Fri, 5 Apr 2019 13:57:56 +0000</updated>
                            <resolved>Thu, 19 Apr 2012 19:23:09 +0000</resolved>
                                    <version>1.4</version>
                                                                        <votes>0</votes>
                                    <watches>0</watches>
                                                                                                                <comments>
                            <comment id="115875" author="gfx00" created="Thu, 3 May 2012 04:31:42 +0000"  >&lt;p&gt;Use BsonValue.RawValue instead of Value and let the dark side of the Force be with you.&lt;/p&gt;</comment>
                            <comment id="109528" author="rstam" created="Fri, 13 Apr 2012 13:03:27 +0000"  >&lt;p&gt;Please post questions to the Google Group:&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;https://groups.google.com/forum/?fromgroups#!forum/mongodb-user&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://groups.google.com/forum/?fromgroups#!forum/mongodb-user&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;The JIRA system is for reporting bugs, not for asking questions about how to use the system.&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10010">
                    <name>Duplicate</name>
                                                                <inwardlinks description="is duplicated by">
                                        <issuelink>
            <issuekey id="36186">CSHARP-443</issuekey>
        </issuelink>
                            </inwardlinks>
                                    </issuelinktype>
                    </issuelinks>
                <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|hrh7pj:</customfieldvalue>

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