KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
I'm trying to do a query like so... query.Where(x => !string.IsNullOrEmpty(x.PropertyName)); but it fails... so for now I have implemented the following, which works... query.Where(x => (x.PropertyName ?? string.Empty) != string.Empty); is there a better (more native?) way that LINQ handles this? EDIT apologize! didn't include the provider... This is using LINQ to SQL
Tags (comma-separated)
Save Edits
Cancel