LINQ to SQL Math.Round Problem
问题 I'm having an issue with a query I wrote where for some reason the variable that I'm using to store a decimal value in returns 6 values after the decimal place (they're mostly 0). I have tried the following (and different combinations using Math.Round) with no luck. Sales = (from invhed in INVHEAD ... // Joins here orderby cust.State ascending select new Sale { InvoiceLine = inv.InvoiceLine, InvoiceNum = inv.InvoiceNum, ... NetPrice = Math.Round((inv.ExtPrice - inv.Discount) * (Decimal)