Skip to content

Commit b2ba708

Browse files
committed
AggregateColumnDescriptor has information of possible result decimal paramters of aggregate expression/column
1 parent 403fb77 commit b2ba708

1 file changed

Lines changed: 19 additions & 0 deletions

File tree

Orm/Xtensive.Orm/Orm/Rse/AggregateColumnDescriptor.cs

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,11 @@ public class AggregateColumnDescriptor
3333
/// </summary>
3434
public AggregateType AggregateType { get; private set; }
3535

36+
/// <summary>
37+
/// Gets hint of decimal's presicion and scale, if such are known.
38+
/// </summary>
39+
public (int Precision, int Scale)? DecimalParametersHint { get; private set; }
40+
3641
/// <inheritdoc/>
3742
public override string ToString()
3843
{
@@ -55,5 +60,19 @@ public AggregateColumnDescriptor(string name, int index, AggregateType aggregate
5560
SourceIndex = index;
5661
AggregateType = aggregateType;
5762
}
63+
64+
65+
/// <summary>
66+
/// Initializes a new instance of this class.
67+
/// </summary>
68+
/// <param name="name"><see cref="Name"/> property value.</param>
69+
/// <param name="index"><see cref="SourceIndex"/> property value.</param>
70+
/// <param name="aggregateType">The <see cref="AggregateType"/> property value.</param>
71+
/// <param name="decimalParametersHint">Additional informantion about decimal column type.</param>
72+
public AggregateColumnDescriptor(string name, int index, AggregateType aggregateType, (int Precision, int Scale) decimalParametersHint)
73+
: this(name, index, aggregateType)
74+
{
75+
DecimalParametersHint = decimalParametersHint;
76+
}
5877
}
5978
}

0 commit comments

Comments
 (0)