what is VAR in Linq query -


can please explain me, var in linq, why using in linq query.

 var result = sta in db.uploaddetails               sta.keyword==issue.uploaddetails.keyword                select sta; 

what var here ??? why linq query full different sql query.

var implicitly typed local variable, type implied compiler based on value assigned.

see http://msdn.microsoft.com/en-gb/library/bb384061.aspx more info.


Comments

Popular posts from this blog

asp.net mvc 3 - Using mvc3, I need to add a username/password to the sql connection string at runtime -

kineticjs - draw multiple lines and delete individual line -

thumbnails - jQuery image rotate on hover -