DbConnector.CommandFormat method (1 of 3)

Creates a new command from a formatted SQL string.

public DbConnectorCommand CommandFormat(FormattableString sql)
parameter description
sql The formatted SQL string.

Remarks

Shorthand for Command(Sql.Format($"...")).

See Also


DbConnector.CommandFormat method (2 of 3)

Creates a new command from a formatted SQL string.

public DbConnectorCommand CommandFormat(FormattableString sql, 
    params (string Name, object? Value)[] parameters)
parameter description
sql The formatted SQL string.
parameters Additional command parameters.

Remarks

Shorthand for Command(Sql.Format($"..."), parameters).

See Also


DbConnector.CommandFormat method (3 of 3)

Creates a new command from a formatted SQL string.

public DbConnectorCommand CommandFormat(FormattableString sql, DbParameters parameters)
parameter description
sql The formatted SQL string.
parameters Additional command parameters.

Remarks

Shorthand for Command(Sql.Format($"..."), parameters).

See Also