This is my code
obj.Category = _db.Category.FirstOrDefault(u => u.Id == obj.CategoryId);
it will have CS8601: Possible null reference assignment
how to fix this one or how to avoid this type of warning in visual studio 2022 using the C#10