Share via


EdmFunctions.Replace(DbExpression, DbExpression, DbExpression) Method

Definition

Creates a DbFunctionExpression that invokes the canonical 'Replace' function with the specified arguments, which must each have a string result type. The result type of the expression is also string.

public static System.Data.Entity.Core.Common.CommandTrees.DbFunctionExpression Replace (this System.Data.Entity.Core.Common.CommandTrees.DbExpression stringArgument, System.Data.Entity.Core.Common.CommandTrees.DbExpression toReplace, System.Data.Entity.Core.Common.CommandTrees.DbExpression replacement);
static member Replace : System.Data.Entity.Core.Common.CommandTrees.DbExpression * System.Data.Entity.Core.Common.CommandTrees.DbExpression * System.Data.Entity.Core.Common.CommandTrees.DbExpression -> System.Data.Entity.Core.Common.CommandTrees.DbFunctionExpression
<Extension()>
Public Function Replace (stringArgument As DbExpression, toReplace As DbExpression, replacement As DbExpression) As DbFunctionExpression

Parameters

stringArgument
DbExpression

An expression that specifies the string in which to perform the replacement operation.

toReplace
DbExpression

An expression that specifies the string that is replaced.

replacement
DbExpression

An expression that specifies the replacement string.

Returns

A new DbFunctionExpression than returns a new string based on stringArgument where every occurence of toReplace is replaced by replacement.

Applies to