WCF RIA 服务如何为客户端的对象验证提供元数据?
难道只有编译时的代码生成才能起作用吗?或者涉及到一些运行时机制?
Is it only code generation in complile-time that does the trick? Or some run-time mechanisms are involved?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
验证元数据仅由 codegen 提供。 Silverlight 验证使用 MemberInfo.GetCustomAttributes() (在 System.Reflection 中)来确定元数据,我不相信有任何方法可以插入它。
Validation metadata is provided only by codegen. Silverlight Validation uses MemberInfo.GetCustomAttributes() (in System.Reflection) to determine the metadata and I don't believe there are any ways to plug into that.