我有对象的接口(interface),内部对象没有暴露。 我可以使用这样的东西吗:
Mapper.Register<IProduct,IProductViewModel>();
当我尝试执行此操作时,出现异常,提示“无法实例化接口(interface)”。
最佳答案
目前ExpressMapper官方不支持继承和接口(interface)类型的注册和映射处理,但2.0版本将支持!有一个 feature in a github .
关于c# - ExpressMapper 可以在 Register 函数中取 Interfaces 吗?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/33763342/