After a query in the DB, my query returns some null values in some attributes and the time to pass the values to the model:
ViewModel.Participantes.Add(new RelParticipantesInscritosAtividadeVM {
RA = p.RA.Value, Nome = p.Nome, Modulo = p.Modulo.Value
});
I get this error message:
The null object must have a value
How do I get my model to get null values or replace null with a default value?