O'Reilly logo

Pro LINQ: Language Integrated Query in C# 2008 by Joseph C. Rattz Jr.

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Tips

It's early in the LINQ to SQL chapters, and keeping with my style, I am going to jump the gun and give you some tips requiring information I have yet to discuss. So if this section makes little sense to you, my work is done! After all, I want you to know about these tips before you need them, not after you have learned them the hard way.

Use the DataContext.Log Property

Now would be a good time to remind you of some of the LINQ-to-SQL-specific tips I provided in Chapter 1. One of those tips titled "The DataContext Log" discussed how you could use the DataContextobject's Log property to display what the translated SQL query will be. This can be very useful for not only debugging purposes but for performance analysis. You may find that your ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required