skip to the main content area of this page
Patterns and Practices

 

LINQ Best Practices within Framework APIs - Framework Design Guidelines


Framework Design Guidelines: Conventions, Idioms, and Patterns for Reusable .NET Libraries by Krzysztof Cwalina and Brad Abrams is one of my favorite books. They are working on a new version, too. What would be a new Framwork Design Guidelines book without a section on LINQ Best Practices when used as part of a framework API? Here is a blog post with just that type of information that covers:

  • A Brief Overview of LINQ
  • Extension Methods, Func<>, Action<>, and Expression<>
  • Extending on LINQ
  • Extending IEnumerable<>
  • Extending IQueryable<>
  • Implementing the Query Pattern

"Writing applications that interact with data sources, such as databases, XML documents, or Web Services such as Flickr or Amazon, is made easier in the .NET Framework 3.5 with the addition of a set of features collectively referred to as LINQ (Language-Integrated Query). In what follows, we start with a very brief overview of LINQ, followed by guidelines for designing APIs in relation to LINQ."

Read more.


Tags: LINQ


Topics



 

Popular Tags



Recent Links