zoukankan      html  css  js  c++  java
  • AutoMapper

    Profile在当前程序集用法

    services.AddAutoMapper(AppDomain.CurrentDomain.GetAssemblies());
    

    Profile不在当前程序集用法

                AutoMapper.IConfigurationProvider config = new MapperConfiguration(cfg =>
                {
                    cfg.AddProfile<Post>();
                });
                services.AddSingleton(config);
                services.AddScoped<IMapper, Mapper>();
    
  • 相关阅读:
    Ado.net 02
    Ado.net01
    sql05
    sql04
    sql03
    sql02
    sql01
    czC#02
    czC#02
    Vue之render函数
  • 原文地址:https://www.cnblogs.com/icxldd/p/13819705.html
Copyright © 2011-2022 走看看