EntityFramework decimal类型的字段,若数字小数位为0则不返回小数,若小数位不为0,返回两位小数
var goods = from s in db.Shop_Goods where s.ID==3 select new{ //请问这里怎么写? Price=Math.Round(s.SalePrice, 2) };