please refer this article http://www.codeproject.com/Articles/156014/How-to-use-LINQ-to-Sharepoint