System.Data.Generic
DataSourcePrepareSql Method |
Formats a SQL statement based on the data type of the parameters parameters.
Namespace: System.Data.Generic
Assembly: System.Data.Generic (in System.Data.Generic.dll) Version: 1.9.5473.30542 (1.9.5473.2392)

public static string PrepareSql( string sql, params Object[] parameters )
Public Shared Function PrepareSql ( sql As String, ParamArray parameters As Object() ) As String
public: static String^ PrepareSql( String^ sql, ... array<Object^>^ parameters )
static member PrepareSql : sql : string * parameters : Object[] -> string
Parameters
- sql
- Type: SystemString
SQL statement. - parameters
- Type: SystemObject
Parameters.
Return Value
Type: StringFormattet SQL statement.

Behaviour of the SQL statement formatting is based on the ThreatMinValuesAsNull property on SerializationSettings property.
