Skip to main content

Properties That Refer to Persistent Objects

Properties That Refer to Persistent Objects

This section describes how the Populate() method, by default, generates data for properties of the following form:

Property PropertyName as PersistentObject;

Where PersistentObject is a class that inherits from %PersistentOpens in a new tab.

For such properties:

  • If the referenced class inherits from %PopulateOpens in a new tab, the Populate() method performs a random sample of the extent of the referenced class and then randomly selects one value from that sample.

    Note that this means you must generate data for the referenced class first. Or create data for the class in any other way.

  • If the referenced class does not inherit from %PopulateOpens in a new tab, the Populate() method does not generate any values for the property.

For information on relationships, see the next section.

FeedbackOpens in a new tab