如何輕松地將DataReader轉(zhuǎn)換為L(zhǎng)ist<T>?我在一個(gè)DataReader我想被轉(zhuǎn)換成List<T>..對(duì)此有什么可能的簡(jiǎn)單解決方案?例如,在CustomerEntity類中,我有CustomerId和CustomerName屬性。List<CustomerEntity>.
如何輕松地將DataReader轉(zhuǎn)換為L(zhǎng)ist<T>?
繁星點(diǎn)點(diǎn)滴滴
2019-10-13 12:08:16