zg-entity
zg-entity is a predefined object to access to fields and properties of a table in the database. You need to write zg-entity with square brackets if you don't use it with a built-in function. In build-in functions it is used with parantheses.
zg-entity object can be used in zsif, zref and ziref file directly.
Example Usage
Example Usage as a Built-in Function Parameter
Fields and Properties of zg-entity
Every field and property has a purpose in Zontroy to store spesific data for code generation.
zg-fields
zg-fields is a collection of fields in an entity like columns in a table. You need to iterate zg-fields using zg-for loop to access the properties of each field.
zg-pkFields
This is a collection of primary key fields in a table. This property supports multiple primary keys. While iterating list of primary keys you can access the properties of each primary key field.
zg-referencingFields
List of referencing fields of an entity is accesible by zg-referencingFields. It also means that zg-referencingFields is a collection of foreign keys in a table.
zg-referencedFields
zg-referencingFields is an object for the list of referenced fields of an entity by another entity. It also means that zg-referencedFields is a collection of columns in a table referenced by another table in the database.
zg-schema
It means the name of schema in the database.
zg-name
It means the name of entity in the database.
zg-targetName
It means the name of entity given by developer in Zontroy Properties Window.
zg-alternativeName
It means the alternative name of entity given by developer in Zontroy Properties Window.
zg-label
It means the label of entity given by developer in Zontroy Properties Window.
zg-rowOrder
It means the order of entity given by developer in Zontroy Properties Window. Zontroy sorts entities by value of row order property automatically.
zg-description
It means the description of entity given by developer in Zontroy Properties Window.
zg-displayFields
zg-displayFields is a collection of fields enterd by developer in Zontroy Properties Window and it is a group of field to use further.
zg-extra1
zg-extra1 is a reserved property to be given by developer for personal purpose in Zontroy Properties Window.
zg-extra2
zg-extra2 is a reserved property to be given by developer for personal purpose in Zontroy Properties Window.
zg-extra3
zg-extra3 is a reserved property to be given by developer for personal purpose in Zontroy Properties Window.
zg-extra4
zg-extra4 is a reserved property to be given by developer for personal purpose in Zontroy Properties Window.
zg-extra5
zg-extra5 is a reserved property to be given by developer for personal purpose in Zontroy Properties Window.
zg-extra6
zg-extra6 is a reserved property to be given by developer for personal purpose in Zontroy Properties Window.
zg-extra7
zg-extra7 is a reserved property to be given by developer for personal purpose in Zontroy Properties Window.
zg-extra8
zg-extra8 is a reserved property to be given by developer for personal purpose in Zontroy Properties Window.
zg-extra9
zg-extra9 is a reserved property to be given by developer for personal purpose in Zontroy Properties Window.
Last updated