私は次のLINQを持っています:
var items = from n in db.Roles
where n.importID == importID
select n;
「importID」はパラメータとしての文字列と文字列ですか?データベースオブジェクト用。データベースでimportIDがnullの場合、一致するものはありません。これを達成する方法は?
コンパイラメッセージ:
Operator '==' cannot be applied to operands of type 'string?' and 'string'