| Frank 的个人资料Frank de Groot日志列表 | 帮助 |
|
11月8日 WCF & EntLib's Validation Application Block MessageContract CaveatI've seen some blog entries of people having trouble using VAB in WCF when a web service has a message contract. Apparently any contained DataContracts aren't validated. After some fidgeting I found the problem: apparently the validation starts at the MessageContract. Just decorate the message body property (decorated with [MessageBody]) with [ObjectValidator]. The ObjectValidator is a validator that allows you to validate properties of a class containing properties decorated with validators. In other words; it allows validation of subtypes. 评论 (1)
引用通告此日志的引用通告 URL 是: http://frankdegroot.spaces.live.com/blog/cns!5F59721C89C5188!166.trak 引用此项的网络日志
|
|
|