Table of Contents

Class Sql.QueryExtensionAttribute

Namespace
LinqToDB
Assembly
linq2db.dll

Defines custom query extension builder.

[AttributeUsage(AttributeTargets.Method|AttributeTargets.Property, AllowMultiple = true)]
public class Sql.QueryExtensionAttribute : MappingAttribute, _Attribute
Inheritance
Sql.QueryExtensionAttribute
Implements
Inherited Members
Extension Methods

Constructors

QueryExtensionAttribute(QueryExtensionScope, Type)

public QueryExtensionAttribute(Sql.QueryExtensionScope scope, Type extensionBuilderType)

Parameters

scope Sql.QueryExtensionScope
extensionBuilderType Type

QueryExtensionAttribute(QueryExtensionScope, Type, params string[])

public QueryExtensionAttribute(Sql.QueryExtensionScope scope, Type extensionBuilderType, params string[] extensionArguments)

Parameters

scope Sql.QueryExtensionScope
extensionBuilderType Type
extensionArguments string[]

QueryExtensionAttribute(string?, QueryExtensionScope, Type)

public QueryExtensionAttribute(string? configuration, Sql.QueryExtensionScope scope, Type extensionBuilderType)

Parameters

configuration string
scope Sql.QueryExtensionScope
extensionBuilderType Type

QueryExtensionAttribute(string?, QueryExtensionScope, Type, string)

public QueryExtensionAttribute(string? configuration, Sql.QueryExtensionScope scope, Type extensionBuilderType, string extensionArgument)

Parameters

configuration string
scope Sql.QueryExtensionScope
extensionBuilderType Type
extensionArgument string

QueryExtensionAttribute(string?, QueryExtensionScope, Type, string, string)

public QueryExtensionAttribute(string? configuration, Sql.QueryExtensionScope scope, Type extensionBuilderType, string extensionArgument0, string extensionArgument1)

Parameters

configuration string
scope Sql.QueryExtensionScope
extensionBuilderType Type
extensionArgument0 string
extensionArgument1 string

QueryExtensionAttribute(string?, QueryExtensionScope, Type, params string[])

public QueryExtensionAttribute(string? configuration, Sql.QueryExtensionScope scope, Type extensionBuilderType, params string[] extensionArguments)

Parameters

configuration string
scope Sql.QueryExtensionScope
extensionBuilderType Type
extensionArguments string[]

Properties

ExtensionArguments

public string[]? ExtensionArguments { get; set; }

Property Value

string[]

ExtensionBuilderType

Instance of ISqlExtensionBuilder.

public Type? ExtensionBuilderType { get; set; }

Property Value

Type

Scope

public Sql.QueryExtensionScope Scope { get; }

Property Value

Sql.QueryExtensionScope

Methods

ExtendJoin(List<SqlQueryExtension>, List<SqlQueryExtensionData>)

public virtual void ExtendJoin(List<SqlQueryExtension> extensions, List<SqlQueryExtensionData> parameters)

Parameters

extensions List<SqlQueryExtension>
parameters List<SqlQueryExtensionData>

ExtendQuery(List<SqlQueryExtension>, List<SqlQueryExtensionData>)

public virtual void ExtendQuery(List<SqlQueryExtension> extensions, List<SqlQueryExtensionData> parameters)

Parameters

extensions List<SqlQueryExtension>
parameters List<SqlQueryExtensionData>

ExtendSubQuery(List<SqlQueryExtension>, List<SqlQueryExtensionData>)

public virtual void ExtendSubQuery(List<SqlQueryExtension> extensions, List<SqlQueryExtensionData> parameters)

Parameters

extensions List<SqlQueryExtension>
parameters List<SqlQueryExtensionData>

ExtendTable(SqlTable, List<SqlQueryExtensionData>)

public virtual void ExtendTable(SqlTable table, List<SqlQueryExtensionData> parameters)

Parameters

table SqlTable
parameters List<SqlQueryExtensionData>

GetExtension(List<SqlQueryExtensionData>)

public virtual SqlQueryExtension GetExtension(List<SqlQueryExtensionData> parameters)

Parameters

parameters List<SqlQueryExtensionData>

Returns

SqlQueryExtension

GetExtensionAttributes(Expression, MappingSchema)

public static Sql.QueryExtensionAttribute[] GetExtensionAttributes(Expression expression, MappingSchema mapping)

Parameters

expression Expression
mapping MappingSchema

Returns

QueryExtensionAttribute[]

GetObjectID()

Returns mapping attribute id, based on all attribute options.

public override string GetObjectID()

Returns

string