This question is actually not easy to answer, given the lack of context that you provide, although usually _db.Categories.Where(m => m.int_ParentId.Equals(null)); does what you want.
There are several inconsistencies between the CTS (.NET type system) and the SQL type system.
See SQL-CLR Type Mismatches - MSDN and Null Semantics - MSDN for full reference.
In particular, null will lead to headaches if you do not take sufficient care, since it has two completely different meanings in the corresponding type systems. NULL in SQL means "no value will match any comparison," while NULL in .NET means "no objects comparing with zero will always give false."
Johannes Rudolph
source share