Work on asp.net mvc5 EF-6 TPH(table per hierarchy), My project have many classes switch,camera,rainbow,router inherit device,here device has common properties but other class have unique properties on each.
For insertion of my camera or switch class properties will I follow Decorator Design Pattern,Because my base is device and want to add new functionality to an existing object without changing its structure then insert the object in database.
Is decorator design patter is perfect for this situation or else is better?
Aucun commentaire:
Enregistrer un commentaire