为什么我们可以在
谢谢你。
DBSet
中使用自动属性,但不能在 ObjectSet
中使用:public class SomeContext : DbContext
{
public DbSet<Address> Addresses { get; set; }
...
}
谢谢你。