Creates a new command from a formatted SQL string.
public DbConnectorCommand CommandFormat(FormattableString sql)
parameter | description |
---|---|
sql | The formatted SQL string. |
Shorthand for Command(Sql.Format($"..."))
.
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. |
Shorthand for Command(Sql.Format($"..."), parameters)
.
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. |
Shorthand for Command(Sql.Format($"..."), parameters)
.