Automapper missing type map configuration or unsupported mapping - Error

前端 未结 12 1553
旧时难觅i
旧时难觅i 2020-11-27 16:25

Entity Model

public partial class Categoies
{
    public Categoies()
    {
        this.Posts = new HashSet();
    }

    public int Id { get; se         


        
12条回答
  •  伪装坚强ぢ
    2020-11-27 16:46

    I found the solution, Thanks all for reply.

    category = (Categoies)AutoMapper.Mapper.Map(viewModel, category, typeof(CategoriesViewModel), typeof(Categoies));
    

    But, I have already dont know the reason. I cant understand fully.

提交回复
热议问题