.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Win Surprise Gifts!!!

Top 5 Contributors of the Month

Home >> Forum >> LINQ >> Post New QuestionBookmark and Share Subscribe to Forum

Get all tables from database and loop through each table using C#,linq query and entity frame work

Posted By: run fast     Posted Date: July 21, 2012    Points:5   Category :LINQ

Hi ,

I have sql server 2012 database with 12 tables (excluding look up tables). i am using entity frame work and trying to query. i am able to query a table

ClientEntities dc = new ClientEntities();
var query = from client1 in dc.CLIENTTable
where client1.CLIENT_ID == txtId.Text
select client1;

above works for 1 table but i need to do it for all the 12 tables. Is there a way to do it in loop


No response found. Be the first to respond this post
Post Reply

You must Sign In To post reply
Find more Forum Questions on C#, ASP.Net, Vb.Net, SQL Server and more Here
Quick Links For Forum Categories:
ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  OOPs  SilverlightIISJQuery

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend