Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- try {
- dbContext = new eStoreDBEntities();
- SerializedOrder ord = new SerializedOrder();
- foreach (Order dbOrd in dbContext.OrderSet) {
- if (dbOrd.Customer.CustomerID == cid) {
- ord.CustId = dbOrd.Customer.CustomerID;
- ord.Amount = dbOrd.OrderAmount;
- ord.OrderDate = dbOrd.OrderDate;
- ord.OrderID = ord.OrderID;
- ord.ShipDate = ord.ShipDate;
- orders.Add(ord);
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement