如何輕松地將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>?
catspeake
2019-07-15 10:27:04