Sdílet prostřednictvím


EdmFunctions.Left(DbExpression, DbExpression) Metoda

Definice

Vytvoří objekt DbFunctionExpression , který vyvolá kanonickou funkci Left se zadanými argumenty, které musí mít řetězec a celočíselný číselný typ výsledku. Typ výsledku výrazu je řetězec.

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

Parametry

stringArgument
DbExpression

Výraz, který určuje řetězec, ze kterého se má extrahovat podřetězc úplně vlevo.

length
DbExpression

Výraz, který určuje délku podřetězce nejvíce vlevo extrahovat z stringArgument.

Návraty

Nový DbFunctionExpression, který vrací úplně vlevo podřetězce délky z stringArgument.

Platí pro