Ejemplo n.º 1
0
        public static IEnumerable <DataObjects.person_identifiers_pair> MakeIdentifiersPairList(IEnumerable <blocking_ids> bids, List <DataObjects.person_identifiers> ids_1, List <DataObjects.person_identifiers> ids_2)
        {
            foreach (var b in bids)
            {
                var first =
                    from i_1 in ids_1
                    where i_1.person_unique_entity_id == b.unique_entity_id_1
                    select i_1;

                var second =
                    from i_2 in ids_2
                    where i_2.person_unique_entity_id == b.unique_entity_id_2
                    select i_2;

                var pair = new DataObjects.person_identifiers_pair();
                pair.person_identifiers_1 = first.FirstOrDefault();
                pair.person_identifiers_2 = second.FirstOrDefault();

                yield return(pair);
            }
        }
Ejemplo n.º 2
0
 public blocking_match()
 {
     person_identifiers_pair = new DataObjects.person_identifiers_pair();
 }