I have LINQ statement that looks like this:
return ( from c in customers select new ClientEntity() { Name = c.Name, ... });
I'd like to be able to abstract out the select into its own method so that I can have different "mapping" option. What does my method need to return?
In essence, I'd like my LINQ query to look like this:
return ( from c in customers select new Mapper(c));
Edit:
This is for LINQ to SQL.