[{"data":1,"prerenderedAt":142},["ShallowReactive",2],{"blog:2007:linq-in-c-web-applications":3,"blogMore-Development":128,"comments-linq-in-c-web-applications":141},{"id":4,"title":5,"body":6,"category":105,"commentCount":106,"date":107,"description":108,"excerpt":109,"extension":110,"filenames":111,"hidden":112,"image":113,"meta":115,"minutes":116,"navigation":117,"path":118,"seo":119,"showCategory":111,"stem":120,"tags":121,"updated":111,"url":125,"wordCount":126,"__hash__":127},"content\u002Fblog\u002F2007\u002Flinq-in-c-web-applications.md","LINQ in C# Web Applications",{"type":7,"value":8,"toc":102},"minimark",[9,21,24,33,42,56,63,66,93,96],[10,11,12,13,20],"p",{},"I’m a big fan of the Web Application type that was previously available as an add-on to Visual Studio 2005 but it got promoted to a standard citizen with ",[14,15,19],"a",{"href":16,"rel":17},"https:\u002F\u002Fmsdn2.microsoft.com\u002Fen-us\u002Fvstudio\u002Faa718695.aspx",[18],"nofollow","Service Pack 1",".",[10,22,23],{},"So with a little more time on my hands lately I’ve been delving into the wonder that is LINQ, part of the forthcoming Orcas release of technologies.",[10,25,26,27,32],{},"For those who’ve been living under a rock ",[14,28,31],{"href":29,"rel":30},"https:\u002F\u002Fmsdn.microsoft.com\u002Fdata\u002Fref\u002Flinq\u002F",[18],"LINQ"," is a set of extensions to .NET that let you perform queries on objects in much the same way you would do on a database with SQL (except the syntax is backwards by comparison).",[10,34,35,36,41],{},"Now while the ",[14,37,40],{"href":38,"rel":39},"https:\u002F\u002Fwww.microsoft.com\u002Fdownloads\u002Fdetails.aspx?familyid=1e902c21-340c-4d13-9f04-70eb5e3dceea&displaylang=en",[18],"LINQ Preview CTP"," installs LINQ projects for C# Class Libraries, Windows Applications and Console Applications it inconveniently misses-out Web Applications!",[10,43,44,45,50,51,55],{},"You can drop ",[14,46,49],{"href":47,"rel":48},"https:\u002F\u002Fwww.envytech.co.uk\u002Fdownload\u002Fdotnet\u002FLINQ%20Web%20Application.zip",[18],"this ZIP file"," in your ",[52,53,54],"code",{},"%UserProfile%\\My Documents\\Visual Studio 2005\\Templates\\ProjectTemplates\\Visual C#"," to gain a new ASP.NET LINQ Web Application project type for you to start with as often as you like as shown:",[57,58],"img",{"className":59,"src":61,"alt":62},[60],"screenshot","https:\u002F\u002Fimg.damieng.com\u002Fblog\u002FLINQWebApplicationDialog.png","Window of the LINQ To SQL templates available",[10,64,65],{},"Or if you want to modify an existing Web Application simply:",[67,68,69,80],"ol",{},[70,71,72,73,76,77],"li",{},"Open up the .csproj file in Notepad and replace\n",[52,74,75],{},"\u003CImport Project=”$(MSBuildBinPath)\\Microsoft.CSharp.targets” \u002F>","\nwith\n",[52,78,79],{},"\u003CImport Project=”$(ProgramFiles)\\LINQ Preview\\Misc\\Linq.targets” \u002F>",[70,81,82,83],{},"Add project references to:",[84,85,90],"pre",{"className":86,"code":88,"language":89},[87],"language-text","System.Data.DLinq\nSystem.Query\nSystem.Xml.XLinq\n","text",[52,91,88],{"__ignoreMap":92},"",[10,94,95],{},"Hopefully more LINQ related posts as I get to grips with it.",[10,97,98],{},[99,100,101],"em",{},"[)amien",{"title":92,"searchDepth":103,"depth":103,"links":104},2,[],"Development",0,"2007-01-06T04:31:42+00:00","I’m a big fan of the Web Application type that was previously available as an add-on to Visual Studio 2005 but it got promoted to a standard citizen with Service Pack 1.","[object Object]","md",null,false,{"className":114,"src":61,"alt":62},[60],{},1,true,"\u002Fblog\u002F2007\u002Flinq-in-c-web-applications",{"title":5,"description":108},"blog\u002F2007\u002Flinq-in-c-web-applications",[122,123,124,31],".NET","ASP.NET","webdev","\u002Fblog\u002F2007\u002Flinq-in-c-web-applications\u002F",209,"NgmUkR0fAljTStnDnPHJIqdCaO_O7CQYfUek73RlSOQ",[129,133,137],{"title":130,"date":131,"url":132},"Transactions in the MongoDB EF Core Provider","2025-10-25","\u002Fblog\u002F2025\u002Fmongodb-explicit-transactions\u002F",{"title":134,"date":135,"url":136},"Queryable Encryption with the MongoDB EF Core Provider","2025-09-22","\u002Fblog\u002F2025\u002Fmongodb-queryable-encryption\u002F",{"title":138,"date":139,"url":140},"Lazy Loading with EF Core Proxies","2025-04-02","\u002Fblog\u002F2025\u002Fef-proxies\u002F",[],1780900532287]