You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
HashSet is a good choice when navigations contain a lot of entities. Over the years, experience has shown that List is probably better in the code for majority of uses since it preserves ordering, allows indexing, etc., and it's actually faster for a small number of items. Since these are templates, it's easy to change the template to get back to HashSet if desired.
This used to be HashSet, but is now List - why?
public virtual ICollection<Order> Orders { get; } = new List<Order>();
The text was updated successfully, but these errors were encountered: