Answers for "linq string comparison case insensitive"

C#
0

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();
Posted by: Guest on September-22-2021

Code answers related to "linq string comparison case insensitive"

C# Answers by Framework

Browse Popular Code Answers by Language