Tuesday

linq "in" exisits


var itemQuery = from cartItems in db.SalesOrderDetails
where cartItems.SalesOrderID == 75144
select cartItems.ProductID;


var myProducts = from p in db.Products
where itemQuery.Contains(p.ProductID)
select p;

details

No comments:

test smtp server with powershell

Send-MailMessage -SMTPServer smtp.domain.com -To [email protected] -From [email protected] -Subject "This is a test email" -Body ...