开发者

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

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜