This question is locked. New answers and comments are not allowed.
My soft supports several Operators.
Each Operator can configure Some Entity as he wants.
Operator can change name, color and so on (in SomeEntity).
I load List<SomeEntity> from Db. And then current Operator can change what he wants.
Then I should get all changes from each SomeEntity - and save to DB in [Operator]-table.
But I don't want save a SomeEntity class in DB.
SomeEntity contains only default values. And when something was changed - these changes saved in Operator-table. But not in SomeEntity.
How I should organize saving to DB such Operator configurations?
I have such classes:
01.[Persistent] 02.public class Operator 03.{ 04. public string OperatorName {get; set;} 05. public SomeEntity Entity {get; set;} 06. public string EntityName {get; set;} 07. public string EntityDescription {get; set;} 08. public Color EntityColor {get; set;} 09. // ..... 10. 11. 12.} 13. 14.[Persistent] 15.public class SomeEntity 16.{ 17. public string Name {get; set;} 18. public string Description {get; set;} 19. public Color Color {get; set;} 20. // ..... 21. 22.}