Joining Data

Discussion created by ccposton on Oct 7, 2011
Latest reply on Oct 13, 2011 by Grieck
In "Joining Data" in the help, the following code is given:

// Build a memory relationship class.
Type memRelClassFactoryType = Type.GetTypeFromProgID(
IMemoryRelationshipClassFactory memRelClassFactory =
IRelationshipClass relationshipClass = memRelClassFactory.Open("ParcelsOwners",
    parcelsFeatureClass, "PARCEL_ID", (IObjectClass)ownersTable, "PARCEL_ID",
    "Is Owned By", "Owns", esriRelCardinality.esriRelCardinalityOneToOne);

But no explanation is provided for "ownersTable."  What is it?

I have created a QueryClass that implements the ITable interface and can be successfully casted to an ITable but that ITable cannot be casted to IObjectClass.  What can be?