【问题标题】:I want to use Automapper in Business Layer of my ASP.NET MVC application我想在我的 ASP.NET MVC 应用程序的业务层中使用 Automapper
【发布时间】:2021-09-16 15:44:55
【问题描述】:

我创建了一个具有 3 层(WebUi 层、业务层、数据层)的 ASP.NET MVC 应用程序。我已经在 WebUi 层中有 Automapper 并且它正在工作,我可以将 WebUi 中的模型映射到业务层中的 Dto,但现在我需要业务层中的 Automapper 将 Dto 映射到实体。

我该怎么做?

【问题讨论】:

标签: asp.net-mvc automapper n-tier-architecture


【解决方案1】:

答案是我必须在解决方案中而不是在 Ui 项目中安装 automappel

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2012-04-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2014-08-14
    • 1970-01-01
    相关资源
    最近更新 更多