开发者

AutoMapper - Intercept member mapping for each member

Is there a way to intercept the mapping of each property? What I would really like to do is something like ForAllMembers(opt => opt.Ignore(Func);

My ultimate goal is to implement column permission checking. But I want 开发者_JAVA技巧an opt in strategy such that all fail unless secured, and I do not want to have to touch my mapping configuration if I add a column. Rather, I would like to change my security controller that provides the condition.


No, this isn't supported right now. But, it's an interesting and quite useful feature that I'll look at for the next release.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜