locked
Not able to fetch the data RRS feed

  • Question

  • Hi,

    I have two tables in entity model T1 and T2 . Both Tables have data.

    I am able to fetch data from table T1.

    Here is my code

     

     

    var q1 = contxt.T1.Select(x => x.Emp_id).ToList();

    var q1 = contxt.T2.Select(x => x.Customer_Id).ToList();

    I am not getting data from  2nd table T2.

    Can you please help .

    Thanks in advance to all viewers

     

     

     

     

    Friday, June 4, 2010 5:13 PM

Answers

  • Seems like you have a typo:

    var q1 = contxt.T1.Select(x => x.Emp_id).ToList();
    
    //your original code reads q1
    var q2 = contxt.T2.Select(x => x.Customer_Id).ToList();
    
    
    
    
    Monday, June 7, 2010 7:57 PM