Esempio n. 1
0
 /// <summary>
 /// Sanitize an input string.
 /// </summary>
 /// <param name="s">The value to sanitize.</param>
 /// <returns>A sanitized string.</returns>
 public string SanitizeString(string s)
 {
     if (String.IsNullOrEmpty(s))
     {
         return(s);
     }
     return(MysqlHelper.SanitizeString(s));
 }
Esempio n. 2
0
 internal static string PreparedStringValue(string s)
 {
     return("'" + MysqlHelper.SanitizeString(s) + "'");
 }