892604a96381aa74dc63f821ee1df36976ded733
[mono.git] / mcs / class / referencesource / System.Data.Entity / System / Data / Common / EntitySql / AST / GroupPartitionExpr.cs
1 //---------------------------------------------------------------------
2 // <copyright file="GroupPartitionExpr.cs" company="Microsoft">
3 //     Copyright (c) Microsoft Corporation.  All rights reserved.
4 // </copyright>
5 //
6 // @owner  Microsoft
7 // @backupOwner Microsoft
8 //---------------------------------------------------------------------
9
10 namespace System.Data.Common.EntitySql.AST
11 {
12     using System;
13     using System.Globalization;
14     using System.Collections;
15     using System.Collections.Generic;
16
17     /// <summary>
18     /// Represents GROUPPARTITION(expr) expression.
19     /// </summary>
20     internal sealed class GroupPartitionExpr : GroupAggregateExpr
21     {
22         private readonly Node _argExpr;
23
24         /// <summary>
25         /// Initializes GROUPPARTITION expression node.
26         /// </summary>
27         internal GroupPartitionExpr(DistinctKind distinctKind, Node refArgExpr)
28             : base(distinctKind)
29         {
30             _argExpr = refArgExpr;
31         }
32
33         /// <summary>
34         /// Return GROUPPARTITION argument expression.
35         /// </summary>
36         internal Node ArgExpr
37         {
38             get { return _argExpr; }
39         }
40     }
41 }