Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如何在 MVC2 的 DataAnnotationsModelMetadataProvider 派生类中获取模型实例?更准确地说,如何在 GetMetadataForProperty 派生方法中获取属性所属的模型实例?