You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
|
using Connected.Expressions.Collections;
|
|
|
|
|
using System.Collections.ObjectModel;
|
|
|
|
|
using System.Linq.Expressions;
|
|
|
|
|
|
|
|
|
|
namespace Connected.Expressions;
|
|
|
|
|
|
|
|
|
|
public sealed class FunctionExpression : DatabaseExpression
|
|
|
|
|
{
|
|
|
|
|
public FunctionExpression(Type type, string name, IEnumerable<Expression>? arguments)
|
|
|
|
|
: base(DatabaseExpressionType.Function, type)
|
|
|
|
|
{
|
|
|
|
|
Name = name;
|
|
|
|
|
|
|
|
|
|
if (arguments is not null)
|
|
|
|
|
Arguments = arguments.ToReadOnly();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public string Name { get; }
|
|
|
|
|
public ReadOnlyCollection<Expression>? Arguments { get; }
|
|
|
|
|
}
|