In the code below, I want to compare two GUIDs. The problem is I don\'t get any tasks returned because the GUIDS are different case (uppercase vs. lowercase). I need to perf
An easy way to ignore case when doing a string comparison is just convert everything to lower (or upper) case before you compare it. So:
var userTasks = dc.tasks.Where(t => t.user_id.ToString().ToLower() == userId.ToString().ToLower()).ToList();
That being said, I agree with the other commenters that you should be using a native GUID comparison, not a string comparison.