Skip to main content

Creating the Model Class: Properties

Next we add property declarations to our MVFILE.PersonModel class:

  1. At this stage, the class definition looks like this

    
    Class MVFILE.PersonModel Extends %ZEN.DataModel.ObjectDataModel 
    [ Language = mvbasic ]
    {
          
    }        
    
  2. 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.

FeedbackOpens in a new tab