Click or drag to resize

SqlSanitizer Methods

The SqlSanitizer type exposes the following members.

Methods
  NameDescription
Public methodStatic memberIsValidSelectStatement
The SQL must not contain a single SELECT statement
Public methodStatic memberIsValidSqlIdentifier
The method checks that the provided identifier is valid. It can be used for validating e.g. a view name. It must begin with a-z or A-Z or _ or @ or # and it must not contain space. Neither must it contain items from the separator black list https://docs.microsoft.com/en-us/sql/relational-databases/databases/database-identifiers?view=sql-server-ver15
Top
See Also