Click or drag to resize

SqlSanitizerIsValidSqlIdentifier Method

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

Namespace:  Omada.OE.Model
Assembly:  Omada.OE.Model (in Omada.OE.Model.dll) Version: 15.0.0.0
Syntax
C#
public static bool IsValidSqlIdentifier(
	string identifierName,
	out string errorMessage
)

Parameters

identifierName
Type: SystemString
errorMessage
Type: SystemString

Return Value

Type: Boolean
See Also