Class SqlParameterCollector
Parameter collector for safe SQL query generation.
Prevents SQL injection, enables PostgreSQL/MSSQL query plan caching.
Database-agnostic: uses ISqlDialect for parameter formatting.
public class SqlParameterCollector
Inheritance
Properties
Methods
AddParameter(object?)
Adds parameter and returns placeholder via dialect.
public string AddParameter(object? value)
AddParameterWithOffset(object?, int)
Adds parameter with specified index offset.
public string AddParameterWithOffset(object? value, int offset)
GetDebugComment()
Generates debug comment with parameters (like EF Core).
public string GetDebugComment()