<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Can we get Intefaces on .Net API in File Geodatabase API Questions</title>
    <link>https://community.esri.com/t5/file-geodatabase-api-questions/can-we-get-intefaces-on-net-api/m-p/67397#M126</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Andrew,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Looking over your example I noticed two things: first that you are performing your search using a recycling cursor, which reuses the underlying set of values as the rows are iterated. This bug would cause the issue you are seeing (each iteration causes the values in referencing rows to shift in concert). &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;However, while tracing through I noted that non-recycling cursors behave as recycling cursors. We'll be reviewing how to remedy this bug.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;In the meantime my recommendation would be to treat the row in side the loop as ephemeral and copy its values out to your own cached value objects. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Tom&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 08 Jun 2012 16:56:37 GMT</pubDate>
    <dc:creator>TomBreed</dc:creator>
    <dc:date>2012-06-08T16:56:37Z</dc:date>
    <item>
      <title>Can we get Intefaces on .Net API</title>
      <link>https://community.esri.com/t5/file-geodatabase-api-questions/can-we-get-intefaces-on-net-api/m-p/67394#M123</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I am trying to unit test code and while simple in ArcObjects I am struggling with the fgdb .net api because there appears to be no interfaces.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;We rely on these to do dependency injection and mocking.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Does anyone know if there are any plans to add interfaces?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Jun 2012 12:49:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/file-geodatabase-api-questions/can-we-get-intefaces-on-net-api/m-p/67394#M123</guid>
      <dc:creator>AndrewMcMenamin</dc:creator>
      <dc:date>2012-06-06T12:49:30Z</dc:date>
    </item>
    <item>
      <title>Re: Can we get Intefaces on .Net API</title>
      <link>https://community.esri.com/t5/file-geodatabase-api-questions/can-we-get-intefaces-on-net-api/m-p/67395#M124</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Andrew,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;There are no current plans to add interfaces to the .net assembly. Perhaps you could develop a facade wrapping the api that is exposed through a set of interfaces? The number of types exposed through the API is not very large.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Wish I had a better answer for you,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Tom&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Jun 2012 18:03:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/file-geodatabase-api-questions/can-we-get-intefaces-on-net-api/m-p/67395#M124</guid>
      <dc:creator>TomBreed</dc:creator>
      <dc:date>2012-06-06T18:03:00Z</dc:date>
    </item>
    <item>
      <title>Re: Can we get Intefaces on .Net API</title>
      <link>https://community.esri.com/t5/file-geodatabase-api-questions/can-we-get-intefaces-on-net-api/m-p/67396#M125</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks for the quick response. It is a shame as I think it makes the API far less usable.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Otherwise it is what I need as I don't want to go full ArcObjects / ArcEngine for my requirement.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;For now we have just isolated the code and can create our own record as our data interface is simple and well-known.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have tired the facade already as the next logical step.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;There is a very odd behavior and we get a memory access exception if we tried to store the Row object in anything other than the RowCollection.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This is what we were trying to do - get all records and add the row into a facade and return as a list.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;As soon as you try to access the row ie row.GetString("field") - fails.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;We assume something is happening in he RowCollection class to reset the enumerator.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; RowCollection rowCollection = FeatureTable.Search("*", "", RowInstance.Recycle);&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // IList&amp;lt;IRowFacade&amp;gt; rowFacades = rowCollection.Select(row =&amp;gt; new RowFacade(row)).Cast&amp;lt;IRowFacade&amp;gt;().ToList();&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; IList&amp;lt;IRowFacade&amp;gt; rowFacades = new List&amp;lt;IRowFacade&amp;gt;();&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; foreach (Row row in rowCollection)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; rowFacades.Add(new RowFacade(row));&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Jun 2012 10:01:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/file-geodatabase-api-questions/can-we-get-intefaces-on-net-api/m-p/67396#M125</guid>
      <dc:creator>AndrewMcMenamin</dc:creator>
      <dc:date>2012-06-07T10:01:06Z</dc:date>
    </item>
    <item>
      <title>Re: Can we get Intefaces on .Net API</title>
      <link>https://community.esri.com/t5/file-geodatabase-api-questions/can-we-get-intefaces-on-net-api/m-p/67397#M126</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Andrew,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Looking over your example I noticed two things: first that you are performing your search using a recycling cursor, which reuses the underlying set of values as the rows are iterated. This bug would cause the issue you are seeing (each iteration causes the values in referencing rows to shift in concert). &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;However, while tracing through I noted that non-recycling cursors behave as recycling cursors. We'll be reviewing how to remedy this bug.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;In the meantime my recommendation would be to treat the row in side the loop as ephemeral and copy its values out to your own cached value objects. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Tom&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Jun 2012 16:56:37 GMT</pubDate>
      <guid>https://community.esri.com/t5/file-geodatabase-api-questions/can-we-get-intefaces-on-net-api/m-p/67397#M126</guid>
      <dc:creator>TomBreed</dc:creator>
      <dc:date>2012-06-08T16:56:37Z</dc:date>
    </item>
    <item>
      <title>Re: Can we get Intefaces on .Net API</title>
      <link>https://community.esri.com/t5/file-geodatabase-api-questions/can-we-get-intefaces-on-net-api/m-p/67398#M127</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Yes that was our solution - we have created our own record to isolate the code.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Another question: This is a .Net4 solution - our other projects are in .Net3.5 and this is causing some issues.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Is there any possibility to get a .Net3.5 supported build?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Jun 2012 07:54:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/file-geodatabase-api-questions/can-we-get-intefaces-on-net-api/m-p/67398#M127</guid>
      <dc:creator>AndrewMcMenamin</dc:creator>
      <dc:date>2012-06-11T07:54:47Z</dc:date>
    </item>
    <item>
      <title>Re: Can we get Intefaces on .Net API</title>
      <link>https://community.esri.com/t5/file-geodatabase-api-questions/can-we-get-intefaces-on-net-api/m-p/67399#M128</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Andrew,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Sorry for the slow response. There are no current plans provide support for .Net 3.5 with the File Geodatabase API.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Best wishes,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Tom&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Jun 2012 16:39:40 GMT</pubDate>
      <guid>https://community.esri.com/t5/file-geodatabase-api-questions/can-we-get-intefaces-on-net-api/m-p/67399#M128</guid>
      <dc:creator>TomBreed</dc:creator>
      <dc:date>2012-06-18T16:39:40Z</dc:date>
    </item>
    <item>
      <title>Re: Can we get Intefaces on .Net API</title>
      <link>https://community.esri.com/t5/file-geodatabase-api-questions/can-we-get-intefaces-on-net-api/m-p/67400#M129</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Hi Andrew,&lt;BR /&gt;...&lt;BR /&gt;However, while tracing through I noted that non-recycling cursors behave as recycling cursors. We'll be reviewing how to remedy this bug.&lt;BR /&gt;...&lt;BR /&gt;Tom&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Was this bug ever entered or resolved? If so, what is the ID?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks in advance,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;-Alan&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Dec 2012 15:53:43 GMT</pubDate>
      <guid>https://community.esri.com/t5/file-geodatabase-api-questions/can-we-get-intefaces-on-net-api/m-p/67400#M129</guid>
      <dc:creator>AlanVan_Looveren</dc:creator>
      <dc:date>2012-12-21T15:53:43Z</dc:date>
    </item>
  </channel>
</rss>

