Assuming that we have the following table:
Person: PersonID, Name, Age, Gender
And we are providing a search function that allows u
why not use the null coalescing operator? eg.
var products = from a in context.products where a.ID == (productID ?? a.ID) select a;
This works really well on my system