Class SqlCommandFactory
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
syntaxOptionsSqlSyntaxOptionsSyntax options controlling parameter and identifier prefixes.
Properties
SyntaxOptions
Gets the syntax options applied by the factory.
public SqlSyntaxOptions SyntaxOptions { get; }
Property Value
Methods
CompileQuery(string)
Compiles the provided SQL text using the configured syntax options.
public SqlQuery CompileQuery(string sql)
Parameters
sqlstringSQL string to parse.
Returns
- SqlQuery
A parsed representation of the SQL statement.