Table of Contents

Enum SqlArgumentDomain

Namespace
LinqToDB.Internal.SqlQuery
Assembly
linq2db.dll

How a function's result relates to the domain of its argument.

public enum SqlArgumentDomain
Extension Methods

Fields

Element = 2

The result is one of the argument's own values - MIN and MAX return a row's value unchanged - so the argument's column describes it completely, width included.

None = 0

The result is unrelated to the argument's domain: COUNT answers how many rows there are and AVG in a type of its own. Neither the reading nor the width of the argument describes it.

SameKind = 1

The result is a value of the same kind as the argument, but not necessarily one of its values: SUM reads back the way the argument does and can exceed the width the argument is declared with.

Remarks

Read where a column descriptor is recovered from an expression. The descriptor answers two questions that come apart here: how the value is read back - its value converter, and the unit a duration is stored in - and how wide the column that holds it is declared. A result drawn from the argument's own values answers both, one merely of the same kind answers only the first.