Table of Contents

Class SqlCommandFactory

Namespace
Utils.Data
Assembly
Utils.Data.dll

Provides factory methods to create SQL commands and compile SQL queries using configured syntax options.

public sealed class SqlCommandFactory
Inheritance
SqlCommandFactory
Inherited Members
Extension Methods

Constructors

SqlCommandFactory(SqlSyntaxOptions?)

Initializes a new instance of the SqlCommandFactory class.

public SqlCommandFactory(SqlSyntaxOptions? syntaxOptions = null)

Parameters

syntaxOptions SqlSyntaxOptions

Syntax options controlling parameter and identifier prefixes.

Properties

SyntaxOptions

Gets the syntax options applied by the factory.

public SqlSyntaxOptions SyntaxOptions { get; }

Property Value

SqlSyntaxOptions

Methods

CompileQuery(string)

Compiles the provided SQL text using the configured syntax options.

public SqlQuery CompileQuery(string sql)

Parameters

sql string

SQL string to parse.

Returns

SqlQuery

A parsed representation of the SQL statement.