{CompanyName} FlexyGo

SQLUtilities..::..FormatField Method (SqlDbType, Object, Boolean, Boolean)

Formats the field depending on its SqlDbType

Namespace:  FLEXYGO.Utilities.SQL
Assembly:  flxUtilities (in flxUtilities.dll)

Syntax


public static string FormatField(
	SqlDbType aSQLDbType,
	Object aValue,
	bool aEscapeQuotes,
	bool Nvarchar
)
Public Shared Function FormatField ( _
	aSQLDbType As SqlDbType, _
	aValue As Object, _
	aEscapeQuotes As Boolean, _
	Nvarchar As Boolean _
) As String

Parameters

aSQLDbType
Type: SqlDbType
A SQL type.
aValue
Type: Object
A value.
aEscapeQuotes
Type: Boolean
if set to true the escape quotes.
Nvarchar
Type: Boolean

Return Value

System.String.