linq怎么用SQL中的LIKE方法呢?
var result = from o in db.Orders
join od in db.Order_Details on o.OrderID equals od.OrderID
where SqlMethods.Like(o.ShipCountry, txtKeyWord.Text)
select new newItem
{
rderID = o.OrderID,
CustomerID = o.CustomerID,
ShipName = o.ShipName,
ShipCity = o.ShipCity,
ShipCountry = o.ShipCountry,
UnitPrice = od.UnitPrice,
Quantity = od.Quantity
};