I have decimal (18,2) data in sql and I set float the property of class in .net side. When I select the object .net returns an error like this:
The 'DiscountRate' property on 'Product' could not be set to a 'Decimal' value. You must set this property to a non-null value of type 'Single'.
Do you have suggestion?