public string GetDefaultDataType() { if (LogicalName.Contains("firstname")) { return(DataTypeHelper.FirstName); } if (LogicalName.Contains("lastname")) { return(DataTypeHelper.LastName); } if (LogicalName.Contains("fullname")) { return(DataTypeHelper.Name); } if (LogicalName == "customerid") { return(DataTypeHelper.Customer); } if (LogicalName.Contains("birthday")) { return(DataTypeHelper.DatePast); } if (LogicalName.Contains("country")) { return(DataTypeHelper.Country); } if (LogicalName.Contains("city")) { return(DataTypeHelper.City); } if (LogicalName.Contains("street") || LogicalName.Contains("_line1")) { return(DataTypeHelper.Street); } if (LogicalName.Contains("email")) { return(DataTypeHelper.Email); } if (LogicalName.Contains("phone") || LogicalName.Contains("mobile")) { return(DataTypeHelper.PhoneNumber); } if (EntityName == "account" && LogicalName == "name") { return(DataTypeHelper.CompanyNames); } return(DataTypeHelper.GetValidTypes(TypeCode)[0]); }