public IObject GetObject([NotNull] IFeatureWorkspace workspace) { Assert.ArgumentNotNull(workspace, nameof(workspace)); IObjectClass objectClass = DatasetUtils.OpenObjectClass(workspace, ClassId); return(GdbQueryUtils.GetObject(objectClass, ObjectId)); }
public IObject GetObject([NotNull] IFeatureWorkspace workspace) { Assert.ArgumentNotNull(workspace, nameof(workspace)); IObjectClass objectClass = DatasetUtils.OpenObjectClass(workspace, RelationshipClassId); // TODO consider using ITable.GetRow(oid) and handling exception if not found // faster? return(GdbQueryUtils.GetObject(objectClass, ObjectId)); }