Skip to main content

This is documentation for Caché & Ensemble. See the InterSystems IRIS version of this content.

For information on migrating to InterSystems IRIS, see Why Migrate to InterSystems IRIS?

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.

Feedback