ShadowFilteringPhoneFilter Method |
Converts a phone number string into a string appropriate for storing or searching with
a
ShadowColumnIField that uses the
Phone algorithm.
Among other transformations, expected phone number punctuation (e.g. '-', '.', '(', ')') is removed.
Namespace:
NetQuarry.Data
Assembly:
EAP.Mapper (in EAP.Mapper.dll) Version: 2.0.0.0 (4.6.8.0)
Syntax public static string PhoneFilter(
string val
)
Public Shared Function PhoneFilter (
val As String
) As String
Parameters
- val
- Type: SystemString
The phone number string to convert.
Return Value
Type:
StringThe transformed string appropriate for searching or storing.
Remarks
The shadow column for this algorithm may be seeded using the SeedPhoneShadow stored procedure and
the shadow column values will be very similar to those that would have been generated by this code, but not necessarily identical.
See Also