Need to speed up automapper…It takes 32 seconds to do 113 objects

后端 未结 7 2008
[愿得一人]
[愿得一人] 2021-01-30 09:25

Hi I have some major problems with auto mapper and it being slow. I am not sure how to speed it up.

I am using nhibernate,fluent nhibernate and asp.net mvc 3.0



        
7条回答
  •  臣服心动
    2021-01-30 09:58

    Was Able to improve Launch Time when added this

     .ForAllMembers(options => options.Condition(prop => prop.SourceValue != null));
    

    at end of Each

    .CreateMap<..,..>()
    

提交回复
热议问题