79796278

Date: 2025-10-21 22:22:45
Score: 0.5
Natty:
Report link

I would generally recommend avoiding any initialization in EF models. The issue might be initialization them to null in runtime so even when they have value EF will override it with yours. I met this behaviour multiple times on previous project i was working on when Enumerable were set to [] by default in models and there were empty lists in response.

Reasons:
  • Has code block (-0.5):
  • Single line (0.5):
  • Low reputation (0.5):
Posted by: Антон