开发者

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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜