简体   繁体   中英

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 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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM