code_junkie

Seperating concerns with Linq To SQL and DTO's

Nov 10th, 2011
123
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.16 KB | None | 0 0
  1. (from c in dataContext.Customers
  2. where c.Active == true
  3. select new DTO.Customer
  4. {
  5. CustomerID = c.CustomerID,
  6. Name = c.CustomerName,
  7. ...
  8. }).ToList()
Add Comment
Please, Sign In to add comment