[This is preliminary documentation and is subject to change.]
Allows only safe characters and digits replacing characters that may be used in SQL injection.
This method may be used to generate column names from entity IDs
Namespace: NFX.ParsingAssembly: NFX (in NFX.dll) Version: 3.0.0.1 (3.0.0.1)
public static string SQLSafeSubstitute(
string str,
char subst = ''
)
public static string SQLSafeSubstitute(
string str,
char subst = ''
)
Public Shared Function SQLSafeSubstitute (
str As String,
Optional subst As Char = ""C
) As String
Public Shared Function SQLSafeSubstitute (
str As String,
Optional subst As Char = ""C
) As String
public:
static String^ SQLSafeSubstitute(
String^ str,
wchar_t subst = L''
)
public:
static String^ SQLSafeSubstitute(
String^ str,
wchar_t subst = L''
)
static member SQLSafeSubstitute :
str : string *
?subst : char
(* Defaults:
let _subst = defaultArg subst ''
*)
-> string
static member SQLSafeSubstitute :
str : string *
?subst : char
(* Defaults:
let _subst = defaultArg subst ''
*)
-> string
Return Value
Type:
String