0

I have the same problem of this 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 ?

Community
  • 1
  • 1
Sam
  • 687
  • 1
  • 6
  • 14

1 Answers1

1

Entity Framework will only work with public properties. If you want to use different access modifies you should check out nHibernate.

Eranga
  • 32,181
  • 5
  • 97
  • 96