接上次,考虑到转DataTable实际性能问题,我把本地LINQ复杂对象不转成DataTable,仅去掉中间的复杂对象.
这样List<TEntity>就可以在WebService中传递了.同样抛砖引玉:-)

 1接"抛砖引玉"public static List<TEntity> ToGeneralList<TEntity>(this IList<TEntity> list) where TEntity : IMyCustomObject
 2        }

实际转换102000条数的表[12列.含三个复杂对象],设置所需时间106毫秒.

相关文章:

  • 2021-11-27
  • 2021-06-23
  • 2021-07-06
  • 2021-08-09
  • 2021-12-31
  • 2021-11-13
  • 2021-07-01
  • 2022-01-05
猜你喜欢
  • 2022-01-28
  • 2021-09-29
  • 2022-12-23
  • 2021-05-15
  • 2021-07-17
  • 2021-12-06
  • 2021-07-25
相关资源
相似解决方案