代码之家  ›  专栏  ›  技术社区  ›  Steve Dunn supercat

如何使用automapper填充回数据表?

  •  4
  • Steve Dunn supercat  · 技术社区  · 14 年前

    我用的是automapper,这是一个很好的工具。

    有很多例子可以从 DataTable / IDataRead DTO 但我似乎找不到任何能改变 数码相机 后面 到A 可计算的 .

    这有可能吗?我试过各种各样的东西,但我认为创造 Row 因为你不能 new 他们起来了。

    2 回复  |  直到 14 年前
        1
  •  3
  •   Jimmy Bogard    14 年前

    Not right now out of the box. What you COULD do is create a new IObjectMapper. Take a look at the DataReaderMapper.cs in the source code (found on github), and build the opposite direction. If you get it to work, I'll gladly fold what you get back into the project, because it sounds like a really interesting idea.

        2
  •  2
  •   Steve Dunn supercat    14 年前

    我把它放在Git中;JimmyBogard可能会在下一个主要版本中合并它。

    你可以得到它 here .