The following procedure shows how to populate the Movie data model created in Creating a data model with some business entities.
In the editor, right-click anywhere in the Data Model Entities panel, and then click New Entity.
In the [New Entity] dialog box that opens, enter a name for your new entity in the Name field, Movie in this example.
Select the Complex Type option.
You use the Simple Type option if you want to define a single element type such as a phone number or an email address, and the Complex Type option if you want to define a more complete structure, such as an address or, in this case, the different attributes that describe a movie.
Leave the other options unchanged and click OK to add your new entity to the editor.
Each time you create a new business entity, a default Primary Key record, which takes its name from the entity name with the suffix Id, and a Unique Key record which has the same name as the Entity are automatically created. For example, if you create a new business entity and name it Agency, the Primary Key record AgencyId will be created automatically.
Follow the same steps to create a new entity Director.
The new entity Director is listed in the Data Model Entities panel with a by default attribute DirectorId.
Follow the same steps to create a new entity Customer.
The new entity Customer is listed in the Data Model Entities panel with a by default attribute CustomerId.
Now three entities Movie, Director and Customer are added to the data model Movie.