DbExpressions.DbExpressionFactory.Replace C# (CSharp) Method

Replace() public method

Creates a DbStringFunctionExpression that represents replacing all occurrences of a specified string value with another string value.
public Replace ( DbExpression expression, DbExpression oldValue, DbExpression newValue ) : DbStringFunctionExpression
expression DbExpression The that represents target string.
oldValue DbExpression The value to be replaced.
newValue DbExpression The value to replace all occurrences of .
return DbStringFunctionExpression
        public DbStringFunctionExpression Replace(DbExpression expression, DbExpression oldValue, DbExpression newValue)
        {
            return MakeStringFunction(DbStringFunctionExpressionType.Replace, new[] { expression, oldValue, newValue });
        }