Table of Contents

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

SqlDialect

SupportsPositionalParameters

Specifies whether or not this factory supports positional parameters.

bool SupportsPositionalParameters { get; }

Property Value

bool

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 Type

Parameter 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.