Click or drag to resize

SqlValidatorValidateForbiddenSchemasInSelectQuery Method

Validate if a SELECT query doesn't contain forbidden schemas. Searches [schema].[table] or [db].[schema].[table]

Namespace:  Omada.OE.Solution.OIM.Assembly.AppLogic.Sql
Assembly:  Omada.OE.Solution.OIM.Assembly (in Omada.OE.Solution.OIM.Assembly.dll) Version: 15.0.0.0
Syntax
C#
public static bool ValidateForbiddenSchemasInSelectQuery(
	SqlCodeObject sqlCodeObject,
	List<string> forbiddenSchemas
)

Parameters

sqlCodeObject
Type: SqlCodeObject
The sql code object.
forbiddenSchemas
Type: System.Collections.GenericListString
The forbidden schemas.

Return Value

Type: Boolean
The Boolean. Returns false if a query is not allowed.
See Also