claude hasler

claude hasler

  • NA
  • 14
  • 1.4k

Should Models return Copies of Data?

Jul 3 2019 3:00 PM
Something i havent wrapped my head around yet is how to handle data flow correctly from Model to ViewModel. Say My Model class contains a List of DataObjects. Should the Model be providing access to those DataObjects or should it only provide copies of these objects?
Or should the Model be providing something like a DataObjectStruct, holding only information but no functionality?
 

Answers (1)