Interface ISqlParameterBinderFactory
- Namespace
- LfrlAnvil.Sql.Statements.Compilers
- Assembly
- LfrlAnvil.Sql.Core.dll
Represents a factory of delegates used by SqlParameterBinderExpression instances.
public interface ISqlParameterBinderFactory
- Extension Methods
Properties
Dialect
SQL dialect that this factory is associated with.
SqlDialect Dialect { get; }
Property Value
SupportsPositionalParameters
Specifies whether or not this factory supports positional parameters.
bool SupportsPositionalParameters { get; }
Property Value
Methods
Create(SqlParameterBinderCreationOptions?)
Creates a new SqlParameterBinder instance.
[Pure]
SqlParameterBinder Create(SqlParameterBinderCreationOptions? options = null)
Parameters
options
SqlParameterBinderCreationOptions?Optional SqlParameterBinderCreationOptions.
Returns
- SqlParameterBinder
New SqlParameterBinder instance.
CreateExpression(Type, SqlParameterBinderCreationOptions?)
Creates a new SqlParameterBinderExpression instance.
[Pure]
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.