Table of Contents

Class Sql.ExtensionAttribute.ExtensionBuilder<TContext>

Namespace
LinqToDB
Assembly
linq2db.dll
protected class Sql.ExtensionAttribute.ExtensionBuilder<TContext> : Sql.ISqExtensionBuilder

Type Parameters

TContext
Inheritance
Sql.ExtensionAttribute.ExtensionBuilder<TContext>
Implements
Extension Methods

Constructors

ExtensionBuilder(TContext, string?, object?, IDataContext, SelectQuery, SqlExtension, Func<TContext, Expression, ColumnDescriptor?, ISqlExpression>, MemberInfo, Expression[])

public ExtensionBuilder(TContext context, string? configuration, object? builderValue, IDataContext dataContext, SelectQuery query, Sql.SqlExtension extension, Func<TContext, Expression, ColumnDescriptor?, ISqlExpression> converter, MemberInfo member, Expression[] arguments)

Parameters

context TContext
configuration string
builderValue object
dataContext IDataContext
query SelectQuery
extension Sql.SqlExtension
converter Func<TContext, Expression, ColumnDescriptor, ISqlExpression>
member MemberInfo
arguments Expression[]

Properties

Arguments

public Expression[] Arguments { get; }

Property Value

Expression[]

BuilderValue

public object? BuilderValue { get; }

Property Value

object

Configuration

public string? Configuration { get; }

Property Value

string

DataContext

public IDataContext DataContext { get; }

Property Value

IDataContext

Expression

public string Expression { get; set; }

Property Value

string

Extension

public Sql.SqlExtension Extension { get; }

Property Value

Sql.SqlExtension

Mapping

public MappingSchema Mapping { get; }

Property Value

MappingSchema

Member

public MemberInfo Member { get; }

Property Value

MemberInfo

Method

public MethodInfo? Method { get; }

Property Value

MethodInfo

Query

public SelectQuery Query { get; }

Property Value

SelectQuery

ResultExpression

public ISqlExpression? ResultExpression { get; set; }

Property Value

ISqlExpression

Methods

AddParameter(string, ISqlExpression)

public Sql.SqlExtensionParam AddParameter(string name, ISqlExpression expr)

Parameters

name string
expr ISqlExpression

Returns

Sql.SqlExtensionParam

ConvertExpression(Expression, bool, ColumnDescriptor?)

public ISqlExpression ConvertExpression(Expression expr, bool unwrap, ColumnDescriptor? columnDescriptor)

Parameters

expr Expression
unwrap bool
columnDescriptor ColumnDescriptor

Returns

ISqlExpression

ConvertExpressionToSql(Expression, bool)

public ISqlExpression ConvertExpressionToSql(Expression expression, bool unwrap)

Parameters

expression Expression
unwrap bool

Returns

ISqlExpression

ConvertToSqlExpression()

public ISqlExpression ConvertToSqlExpression()

Returns

ISqlExpression

ConvertToSqlExpression(int)

public ISqlExpression ConvertToSqlExpression(int precedence)

Parameters

precedence int

Returns

ISqlExpression

GetExpression(int, bool)

public ISqlExpression GetExpression(int index, bool unwrap)

Parameters

index int
unwrap bool

Returns

ISqlExpression

GetExpression(string, bool)

public ISqlExpression GetExpression(string argName, bool unwrap)

Parameters

argName string
unwrap bool

Returns

ISqlExpression

GetObjectValue(int)

public object GetObjectValue(int index)

Parameters

index int

Returns

object

GetObjectValue(string)

public object GetObjectValue(string argName)

Parameters

argName string

Returns

object

GetValue<T>(int)

public T GetValue<T>(int index)

Parameters

index int

Returns

T

Type Parameters

T

GetValue<T>(string)

public T GetValue<T>(string argName)

Parameters

argName string

Returns

T

Type Parameters

T