Click here to Skip to main content
15,895,839 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I'm using DataContext but GetTable method gives error like t4p_cl_mgr ( it is TableName which exist in DataBase ) could not be found.
XML
DataContext dc = new DataContext(ConnectionString);
                    var q = from a in dc.GetTable<t4p_cl_mgr>()
                            where a.ID == this.ID
                            select a;
Posted

1 solution

Use Linq to Sql Class file(dbml) to fetch data from table using linq and build your solution before writing the code you have written above and write the same code using VS intellisense
 
Share this answer
 
Comments
SachinSutar 19-Mar-14 22:22pm    
Thanks,

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900