Skip to content

SqlInsert.Format method

Formats an INSERT query.

public static string Format(string tableName, IEnumerable<FieldExpressionPair> fieldExpressions, 
    ISqlDialect? dialect = null)
parameter description
tableName Table name (required).
fieldExpressions Field names and their value expressions.
dialect Target dialect

Return Value

Formatted query.

Exceptions

exception condition
ArgumentException tableName is null or empty.
ArgumentNullException fieldExpressions is null.

See Also