Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

linq string comparison case insensitive

var query = from article in session.Linq<Articles>()
            where article.Name.Equals(name, StringComparison.OrdinalIgnoreCase) &&
                  article.Category.Equals(category) &&
                  article.Company.Equals(company)
            select article;

return query.FirstOrDefault();
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #linq #string #comparison #case #insensitive
ADD COMMENT
Topic
Name
1+1 =