Click here to Skip to main content
15,851,335 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
var Query=from T in Bank.Amlak
where T.id=5
select T;


Now , i will access to each fild.
Posted
Updated 4-May-11 22:19pm
v3

Try:
foreach (var v in Query)
   {
   ...
   }
 
Share this answer
 
You can try this,

foreach ( Amlak objAmlak in Query)
{

Now you can access your fields like this,

objAmlak.Field1
objAmlak.Field2...

}
 
Share this answer
 
101 LINQ Samples[^], a good place to find answers about LINQ.
 
Share this answer
 

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