Advertisement
Guest User

Untitled

a guest
Oct 24th, 2014
132
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.44 KB | None | 0 0
  1. var query = (from c in context.accounts_companies
  2. select new AccountSearchResultModel()
  3. {
  4. LastContacted = (from calc in context.communique_accounts_last_contacts
  5. where calc.account_id == companyId
  6. orderby calc.last_contact_date descending
  7. select calc.last_contact_date).FirstOrDefault()
  8. });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement