SqlSanitizer Class |
Namespace: Omada.OE.Model
public static class SqlSanitizer
The SqlSanitizer type exposes the following members.
Name | Description | |
---|---|---|
![]() ![]() | IsValidSelectStatement |
The SQL must not contain a single SELECT statement
|
![]() ![]() | IsValidSqlIdentifier |
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
|