开发者

c# DbSet - Internal object association cannot be got

开发者 https://www.devze.com 2023-04-10 18:24 出处:网络
I have the same problem of 开发者_StackOverflowthis topic. but on the association between entities.

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

精彩评论

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