How to select a string in Linq to entity where there is a null object

var delete = db.Users.Where(t => t.Name == null);
db.Users.RemoveRange(delete);
db.SaveChanges();

I use linq to select the rows in the database where the name field is null, and delete them, but they are not deleted in the database itself. Now the strangest thing, I found that sql marks null objects as "NotExistingActionType", and therefore to select null objects, you need to compare the object not with null, but with "NotExistingActionType". But it doesn't work that way either, partially. I decided to experiment, and created a query to output lines where the field Name != "NotExistingActionType", and it outputs to me all strings except null. But at this point, my brain broke down altogether. If I make a request to output rows where name = = "NotExistingActionType", then I do not output a single row, although logically it should have output all rows where name == null in the table itself. Well, here's the question itself. How do I specify a null object in the table in the request, and are there any other such oddities in linq to entity?(I Use Entity Framework core 5)

Author: Alexander Petrov, 2020-11-22