Ignore some of the properties in the Model .NET

Ignore some of the properties in the Model .NET

kea0811kea0811 Posts: 10Questions: 2Answers: 1

Hello,

Is there anyway I can let Editor ignore some of the properties in a model?

Replies

  • allanallan Posts: 61,743Questions: 1Answers: 10,111 Site admin

    Not directly from the model - I must admit that is not something I have thought of before, having assuming (incorrectly it would appear) that the model would be used for Editor alone.

    Having said that you could use the Get() and Set() field instances to have Editor more or less ignore it (perhaps more correctly - do nothing with it):

    new Field( ... )
      .Get( false )
      .Set( false )
    

    Allan

This discussion has been closed.