I've got the following LINQ:
var items = from n in db.Roles
where n.importID == importID
select n;
The "importID" is a string as parameter and a string? for the database object. If importID is null in Database there shall be no match. How to achieve this?
Compiler message:
Operator '==' cannot be applied to operands of type 'string?' and 'string'