Beispiel #1
0
 public bool AddMatch(Row row1, Row row2)
 {
     return(AddMatch(new List <Row> {
         row1, row2
     }));
 }
Beispiel #2
0
        public static string HardSelector(Row row, FieldInclusions toInclude)
        {
            string toReturn = "";

            if (toInclude.First || toInclude.Name)
            {
                if (row.FIRST == "")
                {
                    return("BADFORMAT");
                }
                toReturn += row.FIRST;
            }
            if (toInclude.Last || toInclude.Name)
            {
                if (row.LAST == "")
                {
                    return("BADFORMAT");
                }
                toReturn += row.LAST;
            }
            if (toInclude.SSN)
            {
                if (row.SSN == 0)
                {
                    return("BADFORMAT");
                }
                toReturn += row.SSN;
            }
            if (toInclude.DOB)
            {
                if (row.DOB == default(DateTime))
                {
                    return("BADFORMAT");
                }
                toReturn += row.DOB;
            }
            if (toInclude.Phone)
            {
                if (row.PHONE == 0)
                {
                    return("BADFORMAT");
                }
                toReturn += row.PHONE;
            }
            if (toInclude.Address)
            {
                if (row.ADDRESS1 == "")
                {
                    return("BADFORMAT");
                }
                toReturn += row.ADDRESS1;
            }
            if (toInclude.Email)
            {
                if (row.EMAIL == "")
                {
                    return("BADFORMAT");
                }
                toReturn += row.EMAIL;
            }
            return(toReturn);
        }