Advertisement
Guest User

Untitled

a guest
Feb 10th, 2016
47
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.31 KB | None | 0 0
  1. Class Record
  2. {
  3. int Id
  4. int StartDate
  5. }
  6.  
  7. Class DBRecord
  8. {
  9. int Id
  10. DateTime StartDate
  11. DateTime EndDate
  12. }
  13.  
  14. this.Records().Join(context.DBRecords,
  15. x=> new { x.Id, x.StartDate},
  16. (x, y) => { x.Id == y.Id, x.StartDate > y.StartDate && x.startDate < x.endDate },
  17. (x,y) => y);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement