EdmFunctions.Substring(DbExpression, DbExpression, DbExpression) Metoda
Definice
Důležité
Některé informace platí pro předběžně vydaný produkt, který se může zásadně změnit, než ho výrobce nebo autor vydá. Microsoft neposkytuje žádné záruky, výslovné ani předpokládané, týkající se zde uváděných informací.
Vytvoří objekt DbFunctionExpression , který vyvolá kanonickou funkci Podřetězce se zadanými argumenty, které musí mít řetězcové a celočíselné číselné typy výsledků. Typ výsledku výrazu je řetězec.
public static System.Data.Entity.Core.Common.CommandTrees.DbFunctionExpression Substring (this System.Data.Entity.Core.Common.CommandTrees.DbExpression stringArgument, System.Data.Entity.Core.Common.CommandTrees.DbExpression start, System.Data.Entity.Core.Common.CommandTrees.DbExpression length);
static member Substring : 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 Substring (stringArgument As DbExpression, start 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ězce.
- start
- DbExpression
Výraz, který určuje počáteční index, ze kterého má být podřetěžce převzat.
- length
- DbExpression
Výraz, který určuje délku podřetěžce.
Návraty
Nový DbFunctionExpression, který vrací podřetězce délky z stringArgument od začátku.
Platí pro
Entity Framework