开发者

AutoMapper - Intercept member mapping for each member

开发者 https://www.devze.com 2022-12-25 00:17 出处:网络
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);

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

精彩评论

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