다음을 통해 공유


EdmFunctions.Replace(DbExpression, DbExpression, DbExpression) 메서드

정의

결과 형식이 각각 문자열 형식이어야 하는 지정된 인수를 사용하여 정식 'Replace' 함수를 호출하는 DbFunctionExpression을 만듭니다. 이 식의 결과 형식도 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

매개 변수

stringArgument
DbExpression

바꾸기 작업을 수행할 문자열을 지정하는 식입니다.

toReplace
DbExpression

보고되는 문자열을 지정하는 식입니다.

replacement
DbExpression

대체 문자열을 지정하는 식입니다.

반환

모든 toReplace가 replacement로 대체되는 stringArgument 기반의 새 문자열을 반환하는 새 DbFunctionExpression입니다.

적용 대상