<?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: Populate relationship class without using OIDs? in ArcObjects SDK Questions</title>
    <link>https://community.esri.com/t5/arcobjects-sdk-questions/populate-relationship-class-without-using-oids/m-p/88689#M2346</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Have you tried using IMemoryRelationshipClassFactory? Check out the below link for the sample code&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://help.arcgis.com/en/sdk/10.0/arcobjects_net/componenthelp/index.html#//002500000n8v000000"&gt;http://help.arcgis.com/en/sdk/10.0/arcobjects_net/componenthelp/index.html#//002500000n8v000000&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 13 Jan 2012 20:48:16 GMT</pubDate>
    <dc:creator>sapnas</dc:creator>
    <dc:date>2012-01-13T20:48:16Z</dc:date>
    <item>
      <title>Populate relationship class without using OIDs?</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/populate-relationship-class-without-using-oids/m-p/88688#M2345</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;BR /&gt;&lt;SPAN&gt;We have a M-M relationship class (with an intermediate table) and can only find documentation on populating this using origin and destination OIDs through IRelationshipClass.CreateRelationship. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The relationship class origin and destination primary and foreign keys are NOT using objectID, but another field within the tables. I would like if possible to populate the relationship using values from these fields instead of objectIDs. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Anyone know if this is possible and if there are any examples? I can't find many decent examples for populating relationship classes. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Cheers&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;John&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Jan 2012 12:23:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/populate-relationship-class-without-using-oids/m-p/88688#M2345</guid>
      <dc:creator>JohnFannon</dc:creator>
      <dc:date>2012-01-05T12:23:27Z</dc:date>
    </item>
    <item>
      <title>Re: Populate relationship class without using OIDs?</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/populate-relationship-class-without-using-oids/m-p/88689#M2346</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Have you tried using IMemoryRelationshipClassFactory? Check out the below link for the sample code&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://help.arcgis.com/en/sdk/10.0/arcobjects_net/componenthelp/index.html#//002500000n8v000000"&gt;http://help.arcgis.com/en/sdk/10.0/arcobjects_net/componenthelp/index.html#//002500000n8v000000&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Jan 2012 20:48:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/populate-relationship-class-without-using-oids/m-p/88689#M2346</guid>
      <dc:creator>sapnas</dc:creator>
      <dc:date>2012-01-13T20:48:16Z</dc:date>
    </item>
    <item>
      <title>Re: Populate relationship class without using OIDs?</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/populate-relationship-class-without-using-oids/m-p/88690#M2347</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;For reference - I've managed to find a way to do this. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;As the relationship class is m-m and therefore the relationship has an intermediate table, I can query interface to get an ITable from the IRelationshipClass and then simply insert new relationships using ITable methods such as CreateRow(), SetValue() and Store(). As I thought, this performs much better than IRelationshipClass.CreateRelationship. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Hope that helps someone else out. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;John&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Feb 2012 12:21:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/populate-relationship-class-without-using-oids/m-p/88690#M2347</guid>
      <dc:creator>JohnFannon</dc:creator>
      <dc:date>2012-02-01T12:21:30Z</dc:date>
    </item>
  </channel>
</rss>

