title: Get values from one list inside one list using lambda expression
body: <p>i am new to lambda expression so i try to solve one problem .but i can't. so can anyone suggest solution for this.</p>
  
  <p>i have one class customer. inside i created another 3 class and create observable collection for 3 classes.i create one observable collection for this customer </p>
  
  <pre><code>ObservableCollection&lt;Customer&gt; customer2;
  
     public class Customer
      {
          public string CusName { get; set; }
          public int CusAge { get; set; }
          public ObservableCollection&lt;Bankdetails&gt; bankdetails;
          public ObservableCollection&lt;order&gt; orderlist;
          public ObservableCollection&lt;orderdetails&gt; orderdetailslist;
  
          public class Bankdetails
          {
              public string Bankaccno { get; set; }
              public string bankname { get; set; }
              public int bankid { get; set; }
          }
  
          public class order
          {
              public string ordername { get; set; }
              public string orderid { get; set; }
  
          }
  
          public class orderdetails
          {
              public string orderid { get; set; }
              public string itemname { get; set; }
              public int itemqty { get; set; }
  
          }
  
      }
  </code></pre>
  
  <p>i write one linq query for getting values from  customer2.anyhow its working .like this i tried to write one lambda query but i can't.</p>
  
  <p>here i adding some values to observable collection.</p>
  
  <pre><code>  customer2 = new ObservableCollection&lt;Customer&gt;
          {
              new Customer()
          {
              CusName="nixon",CusAge=24,
              bankdetails=new ObservableCollection&lt;Customer.Bankdetails&gt;
              {
                  new Customer.Bankdetails()
                  {
                      bankid=12,bankname="axis",Bankaccno="09876534"
                  }
              },
              orderlist=new ObservableCollection&lt;Customer.order&gt;
              {
                  new Customer.order
                  {
                      orderid="Od123",ordername="Express"
                  }
              },
              orderdetailslist=new ObservableCollection&lt;Customer.orderdetails&gt;
              {
                  new Customer.orderdetails
                  {
                      orderid="Od123",itemname="cpu",itemqty=5
                  }
              }
  
          }
              };
  </code></pre>
  
  <p>this is my linq query</p>
  
  <pre><code>  var customer1 = from cus in customer2
                        from bank in cus.bankdetails
                        from ord in cus.orderlist
                        from orddet in cus.orderdetailslist
                        where ord.orderid == orddet.orderid 
  
                        select new
                        {
                            cus.CusAge,cus.CusName,
                            bank.Bankaccno,bank.bankid,bank.bankname,
                            ord.ordername,
                            orddet.itemname,orddet.itemqty
  
                        };
  </code></pre>
  
  <p>then what will be the lambda query.pls anyone suggest .</p>