none
Select columns with expand RRS feed

  • Question

  • Hello,

    I am referring to the examples given on this link:

    var q = from c in context.Customers.Expand("Orders")
            where c.CustomerID == "ALFKI" select c;

    My question is how to get columns from both the tables i.e. Customers & Orders

    var q = from c in context.Customers.Expand("Orders")
            where c.CustomerID == "ALFKI" select c.Name,O.Date;

    and one more scenario

    var q = from c in context.Customers.Expand("Orders/Order_Details")
            where c.CustomerID == "ALFKI" select c;

    get the columns from customers, Orders & order Details entities.

    • Edited by Kodnil Friday, February 2, 2018 11:19 AM
    Friday, February 2, 2018 10:50 AM

All replies