Assign values from one model to another without checking null values each time

前端 未结 0 484
粉色の甜心
粉色の甜心 2021-02-07 21:21

I need to assign values from one model to another only if values aren\'t null.

How can I simplify the code below? What pattern should I use?

DatabaseModel          


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题