Hello,
I have this piece of code:
fee.SingleOrDefault(f => 100.05M >= f.Rate);
In the database the Fee.Rate is a money field stored using invariant culture. But using this select gives an error because my current culture will convert "100.05" to "100,05" wihich results in;
An expression of non-boolean type specified in a context where a condition is expected, near ','.
What is the best way to do this?