I have nullable enabled in VS2022.
I don't see what the valid resolution to this nullable warning is.
builder.OwnsOne(o => o.CreatedByUser, createdByUser => {
createdByUser.Property(userRef => userRef.UserId)
.HasColumnName("CreatedByUser");
});
Changing
userRef.UserId
to
userRef?.UserId
would clear the error, but it's a fluent API definition, and that would make no sense (I believe).
I could add warning suppression, but that's equally rubbish.
What would be an appropriate resolution to this warning, please?