Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
由于使用企业库数据阻塞来执行具有表值参数 (TVP) 的存储过程。
我希望能够在存储过程执行之前映射一个列表 => DataTable。
问题是我需要使用 AutoMapper 而不是手动执行此转换。
我想做这样的事情:
Mapper.CreateMap<MyObject, IDataReader>() .ForMember ... ...
听起来你需要的是 Dapper 而不是 AutoMapper:
https://github.com/StackExchange/dapper-dot-net