Design Pattern Framework 3.5
Escape Method
Patterns-In-Action! Application ► DataObjects.AdoNet ► Db ► Escape()()()
Members
Icon | Member | Description |
---|---|---|
Escape(String) |
Escapes an input string for database processing, that is,
surround it with quotes and change any quote in the string to
two adjacent quotes (i.e. escape it).
If input string is null or empty a NULL string is returned.
|
|
Escape(String, Int32) |
Escapes an input string for database processing, that is,
surround it with quotes and change any quote in the string to
two adjacent quotes (i.e. escape it).
Also trims string at a given maximum length.
If input string is null or empty a NULL string is returned.
|