Creating the Model Class: Properties
Next we add property declarations to our MVFILE.PersonModel class:
-
At this stage, the class definition looks like this
Class MVFILE.PersonModel Extends %ZEN.DataModel.ObjectDataModel [ Language = mvbasic ] { }
-
Add the following property declarations to the class in between the curly braces:
Class MVFILE.PersonModel Extends %ZEN.DataModel.ObjectDataModel [ Language = mvbasic ] { Property ItemId As %String; Property Name As %String; Property Age As %String; Property Hair As %String; Property Phones As %String; }
These properties represent the data of the model class.