48 references to Function
System.Data.Entity (48)
System\Data\Common\CommandTrees\DefaultExpressionVisitor.cs (2)
427EdmFunction newFunction = this.VisitFunction(expression.Function); 429!object.ReferenceEquals(expression.Function, newFunction))
System\Data\Common\CommandTrees\Internal\ExpressionDumper.cs (1)
471Dump(e.Function);
System\Data\Common\CommandTrees\Internal\ExpressionKeyGen.cs (1)
316VisitFunction(e.Function, e.Arguments);
System\Data\Common\CommandTrees\Internal\ExpressionPrinter.cs (1)
531TreeNode funcInfo = VisitFunction(e.Function, e.Arguments);
System\Data\Mapping\ViewValidator.cs (2)
212if (!IsStoreSpaceOrCanonicalFunction(this.StoreItemCollection, expression.Function)) 215_setMapping.Set.Name, expression.Function.Identity), (int)StorageMappingErrorCode.UnsupportedFunctionCallInQueryView,
System\Data\Query\PlanCompiler\ITreeGenerator.cs (7)
404EdmFunction edmFunction = ((DbFunctionExpression)expr).Function; 1037if (e.Function.IsModelDefinedFunction) 1048lambda = _iqtCommand.MetadataWorkspace.GetGeneratedFunctionDefinition(e.Function); 1054throw EntityUtil.CommandCompilation(Strings.Cqt_UDF_FunctionDefinitionGenerationFailed(e.Function.FullName), exception); 1061retNode = VisitLambdaExpression(lambda, e.Arguments, e, e.Function); 1070argNodes.Add(BuildSoftCast(VisitExprAsScalar(e.Arguments[idx]), e.Function.Parameters[idx].TypeUsage)); 1073retNode = _iqtCommand.CreateNode(_iqtCommand.CreateFunctionOp(e.Function), argNodes);
System\Data\SqlClient\SqlGen\SqlFunctionCallHandler.cs (32)
527return IsStoreFunction(e.Function) 528&& _storeFunctionHandlers.ContainsKey(e.Function.Name); 539return TypeHelpers.IsCanonicalFunction(e.Function) 540&& _canonicalFunctionHandlers.ContainsKey(e.Function.Name); 551if (TypeHelpers.IsCanonicalFunction(e.Function)) 558foreach (FunctionParameter functionParameter in e.Function.Parameters) 628WriteFunctionName(result, e.Function); 668bool isNiladicFunction = e.Function.NiladicFunctionAttribute; 738Debug.Assert(handlers.ContainsKey(e.Function.Name), "Special handling should be called only for functions in the list of special functions"); 739return handlers[e.Function.Name](sqlgen, e); 763if (staticMethodsMap.TryGetValue(functionExpression.Function.Name, out staticFunctionHandler)) 767else if (instancePropertiesMap.TryGetValue(functionExpression.Function.Name, out instancePropertyName)) 769Debug.Assert(functionExpression.Function.Parameters.Count > 0 && Helper.IsSpatialType(functionExpression.Function.Parameters[0].TypeUsage), "Instance property function does not have instance parameter?"); 775Debug.Assert(functionExpression.Function.Parameters.Count > 0 && Helper.IsSpatialType(functionExpression.Function.Parameters[0].TypeUsage), "Instance method function does not have instance parameter?"); 777if (!renamedInstanceMethodsMap.TryGetValue(functionExpression.Function.Name, out effectiveFunctionName)) 779effectiveFunctionName = functionExpression.Function.Name; 855Debug.Assert(_functionNameToOperatorDictionary.ContainsKey(e.Function.Name), "The function can not be mapped to an operator"); 856result.Append(_functionNameToOperatorDictionary[e.Function.Name]); 908throw EntityUtil.InvalidOperation(System.Data.Entity.Strings.SqlGen_InvalidDatePartArgumentExpression(e.Function.NamespaceName, e.Function.Name)); 914throw EntityUtil.InvalidOperation(System.Data.Entity.Strings.SqlGen_InvalidDatePartArgumentExpression(e.Function.NamespaceName, e.Function.Name)); 924throw EntityUtil.InvalidOperation(System.Data.Entity.Strings.SqlGen_InvalidDatePartArgumentValue(datepart, e.Function.NamespaceName, e.Function.Name)); 930WriteFunctionName(result, e.Function); 960return HandleCanonicalFunctionDatepart(sqlgen, e.Function.Name.ToLowerInvariant(), e); 1281result.Append(_dateAddFunctionNameToDatepartDictionary[e.Function.Name]); 1316result.Append(_dateDiffFunctionNameToDatepartDictionary[e.Function.Name]); 1763if (!_functionRequiresReturnTypeCastToInt32.Contains(e.Function.FullName)) 1811if (!functionsRequiringReturnTypeCast.Contains(e.Function.FullName))
System\Data\SqlClient\SqlGen\SqlGenerator.cs (2)
827EdmFunction function = functionExpr.Function; 4388throw EntityUtil.NotSupported(System.Data.Entity.Strings.SqlGen_CanonicalFunctionNotSupportedPriorSql10(e.Function.Name));