自动映射器版本 5 没有 Mapper.Createmap 的定义
Auto mapper version 5 no definition for Mapper.Createmap
我目前正在学习 ASP.NET MVC 教程,其中讲师使用自动映射器版本 4.x,现在我只能选择版本 5。
当我创建映射配置文件时出现错误 Mapper
不包含 CreateMap
的定义:
我附上了以下所有照片:
我的映射配置文件。
我的Global.asax.cs。
/api/customer
工作正常。
/api/movies
不工作。
我做错了什么或遗漏了什么吗?
这是 link of my images
CreateMap
是基class的实例方法Profile
只要打电话
public MappingProfile()
{
CreateMap<A,B>() //...
}
我目前正在学习 ASP.NET MVC 教程,其中讲师使用自动映射器版本 4.x,现在我只能选择版本 5。
当我创建映射配置文件时出现错误 Mapper
不包含 CreateMap
的定义:
我附上了以下所有照片:
我的映射配置文件。
我的Global.asax.cs。
/api/customer
工作正常。
/api/movies
不工作。
我做错了什么或遗漏了什么吗? 这是 link of my images
CreateMap
是基class的实例方法Profile
只要打电话
public MappingProfile()
{
CreateMap<A,B>() //...
}