c# DbSet - Internal object association cannot be got
I have the same problem of 开发者_StackOverflowthis topic. but on the association between entities.
internal virtual ICollection<Adress> Adresses { get; set; }
It works if I use like this:
public virtual ICollection<Adress> Adresses { get; set; }
How can I initialize Adresses ?
Entity Framework will only work with public
properties. If you want to use different access modifies you should check out nHibernate.
精彩评论