Class SqlParameterBinderFactory
- Namespace
- LfrlAnvil.Sql.Statements.Compilers
- Assembly
- LfrlAnvil.Sql.Core.dll
Represents a factory of delegates used by SqlParameterBinderExpression instances.
public class SqlParameterBinderFactory : ISqlParameterBinderFactory
- Inheritance
-
SqlParameterBinderFactory
- Implements
- Derived
- Inherited Members
- Extension Methods
Properties
ColumnTypeDefinitions
Specifies ISqlColumnTypeDefinitionProvider instance attached to this factory.
public ISqlColumnTypeDefinitionProvider ColumnTypeDefinitions { get; }
Property Value
CommandType
Specifies the DB command type.
public Type CommandType { get; }
Property Value
Dialect
SQL dialect that this factory is associated with.
public SqlDialect Dialect { get; }
Property Value
SupportsPositionalParameters
Specifies whether or not this factory supports positional parameters.
public bool SupportsPositionalParameters { get; }
Property Value
Methods
Create(SqlParameterBinderCreationOptions?)
Creates a new SqlParameterBinder instance.
[Pure]
public SqlParameterBinder Create(SqlParameterBinderCreationOptions? options = null)
Parameters
options
SqlParameterBinderCreationOptions?Optional SqlParameterBinderCreationOptions.
Returns
- SqlParameterBinder
New SqlParameterBinder instance.
CreateExpression(Type, SqlParameterBinderCreationOptions?)
Creates a new SqlParameterBinderExpression instance.
[Pure]
public SqlParameterBinderExpression CreateExpression(Type sourceType, SqlParameterBinderCreationOptions? options = null)
Parameters
sourceType
TypeParameter source type.
options
SqlParameterBinderCreationOptions?Optional SqlParameterBinderCreationOptions.
Returns
- SqlParameterBinderExpression
New SqlParameterBinderExpression instance.
Exceptions
- SqlCompilerException
When
sourceType
is not a valid parameter source type or does not contain any valid members.