I have a MySQL database with a column Amount type Decimal(10,2). I use LINQ to insert a record into the database.
myTable table = new myTable();
int intAmount = 106564; // I received the data in this format. It is $1,065.64
myTable.Amount = (intAmount / 100); // Why it sets the value to 1065 instead of 1065.64?
Does C# Decimal doesn't support decimal values?!?