DEV Community

Discussion on: Full Stack Asp.Net Core App (Bootcamp Project) - Part 2 - The Database and (Razor) Pages

Collapse
 
nickstavrou profile image
NickStavrou

Why do you initialize navigation properties in the constructor as a new HashSet();

Collapse
 
zoltanhalasz profile image
Zoltan Halasz

Its generated by the scaffolding of model from the db.