Language

EdmFunctions.Replace(DbExpression, DbExpression, DbExpression) メソッド

定義

指定した引数を使用して正規の 'Replace' 関数を呼び出す DbFunctionExpression を作成します。各引数には文字列の結果型が必要です。 式の結果の型も文字列です。

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

パラメーター

stringArgument
DbExpression

置換操作を実行する文字列を指定する式。

toReplace
DbExpression

置き換えられる文字列を指定する式。

replacement
DbExpression

置換文字列を指定する式。

戻り値

新しい DbFunctionExpression は、toReplace のすべての出現箇所が置換に置き換えられる stringArgument に基づいて新しい文字列を返します。

適用対象