Home > Microsoft .Net Development Tips > .NET Developer > Beginning LINQ development, Part 2
Win Development Tips:
EMAIL THIS
 TIPS & NEWSLETTERS TOPICS 

.NET DEVELOPER

Beginning LINQ development, Part 2


Brian Eastwood, Site Editor
08.29.2007
Rating: --- (out of 5)


Digg This!    StumbleUpon Toolbar StumbleUpon    Bookmark with Delicious Del.icio.us   


Our previous Beginning LINQ development tip offered an introduction to LINQ to SQL queries and to the use of LINQ in ASP.NET applications.

Much has been written in subsequent months about LINQ, the Language Integrated Query, which as you have probably determined by now is a focal point of Visual Studio 2008 programming. Here we revisit LINQ to SQL basics and also point to tutorials on topics such as monitoring LINQ to SQL performance, building LINQ providers and

Getting up close and personal with LINQ to SQL. Scott Guthrie has become synonymous with "long, in-depth tutorial," and he has been working on a LINQ to SQL series for quite some time now.

LINQ to SQL performance. Here Rico Mariani built a rather "harsh test environment" in which to test the performance of LINQ to SQL, or queries to a SQL Server database.

  • Part 1 introduces that test environment and reviews the metrics that came up when performance was first monitored.
  • Part 2 discovers the problem -- "It was the per-query costs that seemed to be the greatest trouble spot in the then-current profiles."
  • Part 3 describes how to tweak entity management and data binding within the query
  • Finally, Part 4 provides the code syntax for the new build and demonstrates the performance gains to be found in compiled queries.

Building LINQ providers. Matt Warren has put together a nice three-part series on how to use IQueryable and IQueryProvider to build a LINQ provider, which is a way to make a data source accessible through LINQ.

  • Part 1 introduces the properties of these two public interfaces and offers some basic information on how to implement them.
  • Part 2 demonstrates how to build the LINQ provider so that it will translate the query into SQL command text and translate the result of executing that command into an object.
  • Part 3 extends the LINQ provider to numerous operators that all share complex interactions.

Let's get visual. If staring at paragraphs of text and lines of code gets you down, then the Visual Basic team at Microsoft may have just what the doctor ordered. Among the "How Do I" videos that the development group has posted is a five-part series highlighting Visual Basic 2008 and LINQ. Moreover, there are two videos of interest on Channel 9 -- LINQ to SQL and the O/R Designer in VS 2008 and Visual Basic LINQ Syntax in Visual Studio 2008.

Oh, and one more thing. In case we missed anything, Fabrice Marguerie has compiled a helpful LINQ link list. Try saying that five times fast.


Rate this Tip
To rate tips, you must be a member of SearchWinDevelopment.com.
Register now to start rating these tips. Log in if you are already a member.


Submit a Tip




DISCLAIMER: Our Tips Exchange is a forum for you to share technical advice and expertise with your peers and to learn from other enterprise IT professionals. TechTarget provides the infrastructure to facilitate this sharing of information. However, we cannot guarantee the accuracy or validity of the material submitted. You agree that your use of the Ask The Expert services and your reliance on any questions, answers, information or other materials received through this Web site is at your own risk.



Database Programming Solutions - .NET XML, Visual Studio LINQ, ORM .NET
About Us  |  Contact Us  |  For Advertisers  |  For Business Partners  |  Site Index  |  RSS
SEARCH 
TechTarget provides technology professionals with the information they need to perform their jobs - from developing strategy, to making cost-effective purchase decisions and managing their organizations' technology projects - with its network of technology-specific websites, events and online magazines.

TechTarget Corporate Web Site  |  Media Kits  |  Site Map




All Rights Reserved, Copyright 2000 - 2009, TechTarget | Read our Privacy Policy
  TechTarget - The IT Media ROI Experts