DataToSQLString Method

Converts a value into a text string for SQL and can add quotes.

Definition

Namespace: Aliquo.Core
Assembly: Aliquo.Core (in Aliquo.Core.dll) Version: 5.0.9179.22651
C#
public static string ToSQLString(
	Object value,
	bool addQuotes = true
)

Parameters

value  Object
Value to convert.
addQuotes  Boolean  (Optional)
Indicates whether quotes should be added.

Return Value

String
String with the value converted.

Remarks

Can return or 'SQL example.', 'SQL ''demo'' example.'.

See Also