Open davidhenley opened 4 years ago
1) Didn't know about this setting, thanks for pointing this out.
2) .ToString()
makes a copy of the collection such that the original collection can't possibly be modified. It's not a big deal, though, and Enrollments => _enrollments
is fine too. But I recommend using IReadOnlyList
, not IReadOnlyCollection
.
Thanks! Just trying to understand it all. Thank you for all your work in this course
Why did you use metadata instead of the following from EF Core docs?
And why didn't you use
=> _enrollments.ToReadOnlyList()
orAsReadOnly()
or the following from Microsoft docs?I'm trying to follow along but there are so many ways of doing things it seems.