📌  相关文章
📜  linq 字符串比较不区分大小写 - C# 代码示例

📅  最后修改于: 2022-03-11 14:49:22.504000             🧑  作者: Mango

代码示例1
var query = from article in session.Linq()
            where article.Name.Equals(name, StringComparison.OrdinalIgnoreCase) &&
                  article.Category.Equals(category) &&
                  article.Company.Equals(company)
            select article;

return query.FirstOrDefault();