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.QueryExtensionScopeextensionBuilderType
Type
QueryExtensionAttribute(QueryExtensionScope, Type, params string[])
public QueryExtensionAttribute(Sql.QueryExtensionScope scope, Type extensionBuilderType, params string[] extensionArguments)
Parameters
scope
Sql.QueryExtensionScopeextensionBuilderType
TypeextensionArguments
string[]
QueryExtensionAttribute(string?, QueryExtensionScope, Type)
public QueryExtensionAttribute(string? configuration, Sql.QueryExtensionScope scope, Type extensionBuilderType)
Parameters
configuration
stringscope
Sql.QueryExtensionScopeextensionBuilderType
Type
QueryExtensionAttribute(string?, QueryExtensionScope, Type, string)
public QueryExtensionAttribute(string? configuration, Sql.QueryExtensionScope scope, Type extensionBuilderType, string extensionArgument)
Parameters
configuration
stringscope
Sql.QueryExtensionScopeextensionBuilderType
TypeextensionArgument
string
QueryExtensionAttribute(string?, QueryExtensionScope, Type, string, string)
public QueryExtensionAttribute(string? configuration, Sql.QueryExtensionScope scope, Type extensionBuilderType, string extensionArgument0, string extensionArgument1)
Parameters
configuration
stringscope
Sql.QueryExtensionScopeextensionBuilderType
TypeextensionArgument0
stringextensionArgument1
string
QueryExtensionAttribute(string?, QueryExtensionScope, Type, params string[])
public QueryExtensionAttribute(string? configuration, Sql.QueryExtensionScope scope, Type extensionBuilderType, params string[] extensionArguments)
Parameters
configuration
stringscope
Sql.QueryExtensionScopeextensionBuilderType
TypeextensionArguments
string[]
Properties
ExtensionArguments
public string[]? ExtensionArguments { get; set; }
Property Value
- string[]
ExtensionBuilderType
Instance of ISqlExtensionBuilder.
public Type? ExtensionBuilderType { get; set; }
Property Value
Scope
public Sql.QueryExtensionScope Scope { get; }
Property Value
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
SqlTableparameters
List<SqlQueryExtensionData>
GetExtension(List<SqlQueryExtensionData>)
public virtual SqlQueryExtension GetExtension(List<SqlQueryExtensionData> parameters)
Parameters
parameters
List<SqlQueryExtensionData>
Returns
GetExtensionAttributes(Expression, MappingSchema)
public static Sql.QueryExtensionAttribute[] GetExtensionAttributes(Expression expression, MappingSchema mapping)
Parameters
expression
Expressionmapping
MappingSchema
Returns
GetObjectID()
Returns mapping attribute id, based on all attribute options.
public override string GetObjectID()