C# Class CodeStandards.Utilities

Show file Open project: ITAfrique/CodingStandards

Public Methods

Method Description
SQLEncode ( string text ) : string

This escapes a string for raw SQL queries to prevent SQL injection attacks. Use this fuction instead of the NetTiers method SqlUtil.Encode(..), due to the way it handles empty strings.

Method Details

SQLEncode() public static method

This escapes a string for raw SQL queries to prevent SQL injection attacks. Use this fuction instead of the NetTiers method SqlUtil.Encode(..), due to the way it handles empty strings.
public static SQLEncode ( string text ) : string
text string
return string