SqlInsert.Format method
namespace: Serenity.Data assembly: Serenity.Net.Data
Formats an INSERT query.
public static string Format(string tableName, List<string> nameValuePairs)
parameter | description |
---|---|
tableName | Table name (required). |
nameValuePairs | Field names and values. Must be passed in the order of [field1, value1, field2, value2, ...., fieldN, valueN] . It must have even number of elements. |
Return Value
Formatted query.
See Also
- class SqlInsert