Skip to content

Commit 03027b6

Browse files
committed
Move SqlFunctionCallBase class into its own file
1 parent e86f4ad commit 03027b6

File tree

2 files changed

+33
-21
lines changed

2 files changed

+33
-21
lines changed

Orm/Xtensive.Orm/Sql/Dml/Expressions/SqlFunctionCall.cs

Lines changed: 0 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -10,27 +10,6 @@
1010

1111
namespace Xtensive.Sql.Dml
1212
{
13-
[Serializable]
14-
public abstract class SqlFunctionCallBase : SqlExpression
15-
{
16-
/// <summary>
17-
/// Gets the expressions.
18-
/// </summary>
19-
public IReadOnlyList<SqlExpression> Arguments { get; protected set; }
20-
21-
internal SqlFunctionCallBase(SqlNodeType nodeType, IEnumerable<SqlExpression> arguments)
22-
: base(nodeType)
23-
{
24-
Arguments = arguments.ToList();
25-
}
26-
27-
internal SqlFunctionCallBase(SqlNodeType nodeType, SqlExpression[] arguments)
28-
: base(nodeType)
29-
{
30-
Arguments = arguments ?? Array.Empty<SqlExpression>();
31-
}
32-
}
33-
3413
[Serializable]
3514
public class SqlFunctionCall : SqlFunctionCallBase
3615
{
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
// Copyright (C) 2003-2022 Xtensive LLC.
2+
// This code is distributed under MIT license terms.
3+
// See the License.txt file in the project root for more information.
4+
5+
using System;
6+
using System.Collections.Generic;
7+
using System.Collections.ObjectModel;
8+
using System.Linq;
9+
using Xtensive.Core;
10+
11+
namespace Xtensive.Sql.Dml
12+
{
13+
[Serializable]
14+
public abstract class SqlFunctionCallBase : SqlExpression
15+
{
16+
/// <summary>
17+
/// Gets the expressions.
18+
/// </summary>
19+
public IReadOnlyList<SqlExpression> Arguments { get; protected set; }
20+
21+
internal SqlFunctionCallBase(SqlNodeType nodeType, IEnumerable<SqlExpression> arguments)
22+
: base(nodeType)
23+
{
24+
Arguments = arguments.ToList();
25+
}
26+
27+
internal SqlFunctionCallBase(SqlNodeType nodeType, SqlExpression[] arguments)
28+
: base(nodeType)
29+
{
30+
Arguments = arguments ?? Array.Empty<SqlExpression>();
31+
}
32+
}
33+
}

0 commit comments

Comments
 (0)