private FunctionReference(string name, SimpleReference argument, bool isAggregate, string alias, params object[] additionalArguments) : base(alias)
 {
     _name                = name;
     _argument            = argument;
     _isAggregate         = isAggregate;
     _additionalArguments = additionalArguments;
 }
 private FunctionReference(string name, SimpleReference argument, bool isAggregate, string alias)
 {
     _name = name;
     _argument = argument;
     _isAggregate = isAggregate;
     _alias = alias;
 }
 internal FunctionReference(string name, SimpleReference argument, params object[] additionalArguments)
 {
     _name                = name;
     _argument            = argument;
     _additionalArguments = additionalArguments;
     _isAggregate         = AggregateFunctionNames.Contains(name.ToLowerInvariant());
 }
        public static bool TryCreate(string name, SimpleReference argument, out object functionReference)
        {
            if (!KnownFunctionNames.Contains(name.ToLowerInvariant()))
            {
                functionReference = null;
                return false;
            }

            functionReference = new FunctionReference(name, argument);
            return true;
        }
Beispiel #5
0
        public static bool TryCreate(string name, SimpleReference argument, out object functionReference)
        {
            if (!KnownFunctionNames.Contains(name.ToLowerInvariant()))
            {
                functionReference = null;
                return(false);
            }

            functionReference = new FunctionReference(name, argument);
            return(true);
        }
        public string FormatColumnClause(SimpleReference reference)
        {
            var formatted = TryFormatAsObjectReference(reference as ObjectReference)
                            ??
                            TryFormatAsFunctionReference(reference as FunctionReference)
                            ??
                            TryFormatAsMathReference(reference as MathReference);

            if (formatted != null) return formatted;

            throw new InvalidOperationException("SimpleReference type not supported.");
        }
 internal FunctionReference(string name, SimpleReference argument)
 {
     _name = name;
     _argument = argument;
     _isAggregate = AggregateFunctionNames.Contains(name.ToLowerInvariant());
 }
Beispiel #8
0
 public static bool IsNull(this SimpleReference reference)
 {
     return(ReferenceEquals(reference, null));
 }