Creating an Entity Object for a Table with No Primary Key

When you define an entity object, it must have a primary key or use a RowID attribute (based on the table's ROWID). To do so, you must create a new attribute while you are defining your entity object in the Entity Object Wizard.

If you create a default entity object from a table with no primary key, a RowID attribute is automatically created as the primary key.

To define a RowID attribute to use as a primary key:

  1. In the Attributes page of the Entity Object Wizard, click New from Table.

  2. In the Create New Entity Attributes for Column dialog, select ROWID in the Available list and click > to move it to the Selected list.

  3. Click OK.

    The RowID attribute appears in the Entity Attributes list.