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