I just found out about a CodePlex Project team that is undertaking building an implementation of LINQ for Active Directory.  Once you've taken on the challenge of learning LINQ, you like me are probably looking for as many LINQ Implementations as you can, so that you don't have to continue to or learn to program around the different Search/Insert/Update/Delete methodologies of the different parts of the .NET Framework.

Subscribe to Sheltonblog.com

↑ Grab this Headline Animator

Here's the "Introduction" of the project from the CodePlex site:

Introduction

LINQ to Active Directory implements a custom LINQ query provider that allows querying objects in Active Directory. Internally, queries are translated into LDAP filters which are sent to the server using the System.DirectoryServices .NET Framework library. LINQ stands for Language Integrated Query and is one of the core features of Microsoft's .NET Framework 3.5 release. More information can be found via the MSDN website on http://msdn.microsoft.com.

Features

  • Translates into LDAP filters according to RFC 2254.
  • Simple and approachable entity model with support of propagating updates back.
  • Supports mappings to both the System.DirectoryServices (.NET) and ActiveDs (COM) APIs.
  • Ships with a set of samples.

(Here's a picture of some code examples in C# and VB.NET)

image

Here's a link to download the LINQ to AD Project: Click here to download

~Robert Shelton