using LINQ in asp.net 3.5

Posted by Dn2010 under ASP.NET on 4/9/2012 | Points: 10 | Views : 5001 | Status : [Member] | Replies : 3
hi friends,


please give using LINQ in asp.net 3.5 examples,

eg:

table employee

fields

eid,ename,esal

how to write asp.net using LINQ.

please give the steps and code,


thanks.




Responses

Posted by: Sakthi.Singaravel on: 4/9/2012 [Member] Silver | Points: 25

Up
0
Down
Hi,

See this link, its example table creation using LINQ...

http://www.codeproject.com/Articles/188935/LINQ-Demo-with-ASP-NET-Web-Application

Regards,
Singaravel M

Dn2010, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Akiii on: 4/9/2012 [Member] Bronze | Points: 25

Up
0
Down
@n2010....Do you want to retrieve the complete data from the table ?

var temp = from h in dataContext.employee 

select h;


This will fetch you all the data from the employee table.


Thanks and Regards
Akiii

Dn2010, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Akiii on: 4/9/2012 [Member] Bronze | Points: 25

Up
0
Down
Also try studying the link below :-

http://msdn.microsoft.com/en-us/vstudio/aa336746


Thanks and Regards
Akiii

Dn2010, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response