Функция работы LINQ SELECT
// Notice that code for calculating price is repeated
var q =
from p in db.Products
where (p.UnitPrice * 1.19m) > 30.0m
select new
{
p.ProductName,
OriginalPrice = p.UnitPrice,
ShopPrice = (p.UnitPrice * 1.19m)
};
Quaint Quelea