我一直以为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);
}