I want to select my price level in database to compare with the an integer number. But It is error : Operator \'==\' cannot be applied to operands of type \'System.Linq.IQue
var list_pricelevel
This is per definition not an int because more than one row can be returned.
int
I don't use SQL syntax (only lambda) but at the end you want the equivalent of a .FirstOrDefault or Single or First. Basically taking the first row.
.FirstOrDefault
Single
First