✅ MySQL with Entity Framework, getting null of entity all time
and userAssignmentDate returns null all time when UserId and AssignmentId are good values
13 Replies
You need to explicitly load the related data
with
.Include()
Or better, .Select()
so now it's not null but the time is not updating D:
How is it null when i wanna chcek value??
@ZZZZZZZZZZZZZZZZZZZZZZZZZ
Where is it null, exactly?
here
And the whole assignment is null, or just the upload date?
.
Well, apparently there's no such assignment
Try commenting out the
Where()
clause, see if that gives resultsidk there seen to be 6 results
but for some reason i can't get to them
Make sure that
UserId
and assignmentId
are both 1, for example
Since I can see you have an entry like that
Issue seems to be with what you're trying to query byim gonna lose my mind getting this project to very end ... the issue was with passing userId = 0
which obviously doesn't exist
So i just get correct userId and it works just fine