Created
July 17, 2018 11:53
-
-
Save mesutd0nmez/91d8e4f85d536b5c3d001280b356b486 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var list = dc.Orders. | |
Join(dc.Order_Details, | |
o => o.OrderID, od => od.OrderID, | |
(o, od) => new | |
{ | |
OrderID = o.OrderID, | |
OrderDate = o.OrderDate, | |
ShipName = o.ShipName, | |
Quantity = od.Quantity, | |
UnitPrice = od.UnitPrice, | |
ProductID = od.ProductID | |
}).Join(dc.Products, | |
a => a.ProductID, p => p.ProductID, | |
(a, p) => new | |
{ | |
OrderID = a.OrderID, | |
OrderDate = a.OrderDate, | |
ShipName = a.ShipName, | |
Quantity = a.Quantity, | |
UnitPrice = a.UnitPrice, | |
ProductName = p.ProductName | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment