Share via


EdmFunctions.Length(DbExpression) Method

Definition

Creates a DbFunctionExpression that invokes the canonical 'Length' function with the specified argument, which must have a string result type. The result type of the expression is Edm.Int32.

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

Parameters

stringArgument
DbExpression

An expression that specifies the string for which the length should be computed.

Returns

A new DbFunctionExpression that returns the length of stringArgument.

Applies to