Share via


EdmFunctions.StartsWith(DbExpression, DbExpression) Method

Definition

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

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

Parameters

stringArgument
DbExpression

An expression that specifies the string that is searched at the start for string prefix.

prefix
DbExpression

An expression that specifies the target string that is searched for at the start of stringArgument.

Returns

A new DbFunctionExpression that returns a Boolean value indicating whether or not stringArgument starts with prefix.

Applies to