由网友(我爱的人,自已离我而去)分享简介:我需要将值传递给我的自定义解析。该值的变化,所以我不能硬$ C C $他们在我的注册静态类。我怎样才能做到这一点?I need to pass values to my Custom Resolver. The values change, so I can't hard code them in my regist...
我需要将值传递给我的自定义解析。该值的变化,所以我不能硬$ C C $他们在我的注册静态类。我怎样才能做到这一点?
I need to pass values to my Custom Resolver. The values change, so I can't hard code them in my register static class. How can I achieve this?
// Called from global.asa page
public static void Register()
{
Mapper.CreateMap<Task, TaskTableViewModel>().ForMember(dest => dest.DueDate,
opt => opt.ResolveUsing<DueDateResolver>().ConstructedBy(() => new DueDateResolver(dateFormatString)));
}
推荐答案
我问了一下这个在另一块电路板,被告知这是不可能做到在这个版本。
I asked about this on another board and was told it isn't possible to do in this version.
相关推荐
最新文章