Project Description
LINQ Projector allows you to auto map ORM entity classes to your own classes in LINQ queries.

In short it gives you an ability to change this kind of code:
var personData = dataContext.People
   .Select(p=>new PersonView
      {
         Id = p.Id,
         LastName = p.LastName,
         FirstName = p.FirstName
      }).First();

to this:
var personData = dataContext.People
   .Project().To<PersonView>()
   .First();
The queries to the database in both cases will be identical.

The project is inspired by this post by Paul Hiles:
http://www.devtrends.co.uk/blog/stop-using-automapper-in-your-data-access-code

Supports .NET 3.5 and higher.

You can install this library through NuGet:
PM> Install-Package LinqProjector

Last edited Sep 18, 2013 at 10:38 AM by kgolovchenko, version 12