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.
精彩评论