Add entities using Quick Model  Quick Model


back   home


1. Click the Quick Model button on the toolbar.
Open the Quick Model editor
2. In the Command input field, type Customer.Orders 1n Order.Customer. Press enter.
Command input
3. In the large editor canvas, the ModelViewer, the entities Customer and Order are shown, as wel as the relationship between them (1:n).
Command input
4. Now type #u Customer in the command input field. This will set the scope to the Customer entity.
Scope to Customer
5. To make an Identifying field 'Id' in the customer entity, of type 'int', you type: Id int *.
Id int *

Id int *
6. The other fields for Customer are easily created by typing fieldname type and pressing 'enter'. If a field is optional / nullable, you add null to the line and if a type needs a specification, you can put that between brackets.
ContactPerson string null
Zipcode string (10)
7. When you're done adding fields to the Customer entity, type #u- to update the scope to one level higher. Change the scope to Order the way you did in step 4 and add the fields for this entity.
Update scope
 

next step
  Add a database