0
这部分代码工作正常ASP.NET MVC3 System.ComponentModel.DataAnnotations和协会
[Association(Storage = "profile", ThisKey = "UserId", OtherKey = "UserId")]
public Profile User {
get { return this.profile.Entity; }
set { this.profile.Entity = value; }
}
,但如果我在这个类
System.ComponentModel.DataAnnotations
再加入,会找不到。
问题在哪里?
没想到你可以做到这一点,谢谢@Domenic! – Austin 2011-03-15 18:42:27