EdmFunctions.StartsWith(DbExpression, DbExpression) Método
Definição
Cria um DbFunctionExpression que invoca a função 'StartsWith' canônica com o argumento especificado, que cada um deve ter um tipo de resultado de cadeia de caracteres.Creates a DbFunctionExpression that invokes the canonical 'StartsWith' function with the specified arguments, which must each have a string result type. O tipo de resultado da expressão é um booliano.The result type of the expression is Boolean.
public:
[System::Runtime::CompilerServices::Extension]
static System::Data::Common::CommandTrees::DbFunctionExpression ^ StartsWith(System::Data::Common::CommandTrees::DbExpression ^ stringArgument, System::Data::Common::CommandTrees::DbExpression ^ prefix);
public static System.Data.Common.CommandTrees.DbFunctionExpression StartsWith (this System.Data.Common.CommandTrees.DbExpression stringArgument, System.Data.Common.CommandTrees.DbExpression prefix);
static member StartsWith : System.Data.Common.CommandTrees.DbExpression * System.Data.Common.CommandTrees.DbExpression -> System.Data.Common.CommandTrees.DbFunctionExpression
<Extension()>
Public Function StartsWith (stringArgument As DbExpression, prefix As DbExpression) As DbFunctionExpression
Parâmetros
- stringArgument
- DbExpression
Uma expressão que especifica a cadeia de caracteres que é pesquisada no prefixo de cadeia de caracteres inicial.An expression that specifies the string that is searched at the start for string prefix.
- prefix
- DbExpression
Uma expressão que especifica a cadeia de caracteres de destino que é pesquisada no início de stringArgument.An expression that specifies the target string that is searched for at the start of stringArgument.
Retornos
Um novo DbFunctionExpression que retorna um valor booliano que indica se o stringArgument começa ou não com o prefixo.A new DbFunctionExpression that returns a Boolean value indicating whether or not stringArgument starts with prefix.