开发者

What design pattern will fit to convert data table to list of domain objects?

开发者 https://www.devze.com 2023-03-29 09:10 出处:网络
I have a service that calls database to retrieve data; this service will return data as data table. Now I want to implement design pattern that fit in between my client and the service so it will conv

I have a service that calls database to retrieve data; this service will return data as data table. Now I want to implement design pattern that fit in between my client and the service so it will convert these data tables to list of domain object. Which design pattern will fit here as a wrap开发者_如何学Goper for this service by exposing data table as list of objects?


I guess you need adapter pattern.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号