Table of Contents

Class Sql.SqlExtension

Namespace
LinqToDB
Assembly
linq2db.dll
public class Sql.SqlExtension
Inheritance
object
Sql.SqlExtension
Extension Methods

Constructors

SqlExtension(Type?, string, int, int, bool, bool, bool, bool, IsNullableType, bool?, params SqlExtensionParam[])

public SqlExtension(Type? systemType, string expr, int precedence, int chainPrecedence, bool isAggregate, bool isWindowFunction, bool isPure, bool isPredicate, Sql.IsNullableType isNullable, bool? canBeNull, params Sql.SqlExtensionParam[] parameters)

Parameters

systemType Type
expr string
precedence int
chainPrecedence int
isAggregate bool
isWindowFunction bool
isPure bool
isPredicate bool
isNullable Sql.IsNullableType
canBeNull bool?
parameters SqlExtensionParam[]

Properties

CanBeNull

public bool? CanBeNull { get; set; }

Property Value

bool?

ChainPrecedence

public int ChainPrecedence { get; set; }

Property Value

int

Expr

public string Expr { get; set; }

Property Value

string

Flags

public SqlFlags Flags { get; set; }

Property Value

SqlFlags

IsAggregate

public bool IsAggregate { get; }

Property Value

bool

IsNullable

public Sql.IsNullableType IsNullable { get; set; }

Property Value

Sql.IsNullableType

IsPredicate

public bool IsPredicate { get; }

Property Value

bool

IsPure

public bool IsPure { get; }

Property Value

bool

IsWindowFunction

public bool IsWindowFunction { get; }

Property Value

bool

NamedParameters

public Dictionary<string, List<Sql.SqlExtensionParam>> NamedParameters { get; }

Property Value

Dictionary<string, List<Sql.SqlExtensionParam>>

Precedence

public int Precedence { get; set; }

Property Value

int

SystemType

public Type? SystemType { get; set; }

Property Value

Type

Methods

AddParameter(SqlExtensionParam)

public Sql.SqlExtensionParam AddParameter(Sql.SqlExtensionParam param)

Parameters

param Sql.SqlExtensionParam

Returns

Sql.SqlExtensionParam

AddParameter(string, ISqlExpression)

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

Parameters

name string
sqlExpression ISqlExpression

Returns

Sql.SqlExtensionParam

GetParameters()

public Sql.SqlExtensionParam[] GetParameters()

Returns

SqlExtensionParam[]

GetParametersByName(string)

public IEnumerable<Sql.SqlExtensionParam> GetParametersByName(string name)

Parameters

name string

Returns

IEnumerable<Sql.SqlExtensionParam>