using System; namespace DS.WMS.PrintApi.Utils { public static class SqlUtil { /// /// sql /// /// /// public static bool IsSqlInjection(string input) { string[] sqlCheckList = { "TRUNCATE", "INSERT", "UPDATE", "DELETE", "DROP", "--", "'" }; foreach (string item in sqlCheckList) { if (input.IndexOf(item, StringComparison.OrdinalIgnoreCase) >= 0) { return true; } } return false; } } }