/Rhino.Etl.Tests/Joins/LeftJoinUsersToPeopleByEmail.cs

http://github.com/ayende/rhino-etl · C# · 13 lines · 12 code · 1 blank · 0 comment · 2 complexity · 1d16f362baff2cf7c17b16970a07db84 MD5 · raw file

  1. namespace Rhino.Etl.Tests.Joins
  2. {
  3. using System.Collections.Generic;
  4. using Core;
  5. public class LeftJoinUsersToPeopleByEmail : BaseJoinUsersToPeople
  6. {
  7. protected override bool MatchJoinCondition(Row leftRow, Row rightRow)
  8. {
  9. return Equals(leftRow["email"], rightRow["email"]) || rightRow["email"] == null;
  10. }
  11. }
  12. }