我有这段代码:
fee.SingleOrDefault(f => 100.05M >= f.Rate);
在数据库中,Fee.Rate 是使用不变文化存储的货币字段。但是使用此选择会出错,因为我当前的文化会将“100.05”转换为“100,05”,从而导致;
An expression of non-boolean type specified in a context where a condition is expected, near ','.
做这个的最好方式是什么?