BasePO --> ActiveRecordBase

po --> BasePO, IBasePO

dao --> BaseDAO

When dao inits
{
set AR src
set po className
set dto className
get poType by ClassLoader.forName().GetType()
}

When dao get dtos
{
AR inits
BasePO get pos <-- ActiveRecord static methods
copyProperties(dtos, pos) --> ArrayList
}

NUnit 测试,记录数 13 条,主键标识使用 32位 GUID

每次 get dtos 消耗至少 3 秒

ClassLoader 比普通新建对象多消耗 0.10 秒

测试一个空方法消耗 1.03 秒左右

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-09-02
  • 2022-12-23
  • 2022-12-23
  • 2021-12-23
  • 2022-12-23
  • 2021-06-22
猜你喜欢
  • 2021-09-30
  • 2021-06-10
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案