Linq子句在哪里区分大小写?

时间:2019-08-01 13:55:15

标签: c# entity-framework

我一直以为Linq子句区分大小写,但是我有这段代码,它以小写搜索字符串返回结果,但是记录具有大写字母

           List<RailUnitLocation> locations = db.RailUnitLocations.Where(r => r.Division == division).ToList();

              List<string> serialNumbers = new List<string>();

              foreach (RailUnitLocation location in locations)
              {
                    serialNumbers.Add(location.SerialNumber);
               }

0 个答案:

没有答案