EdmFunctions.Second(DbExpression) Méthode

Définition

Crée un DbFunctionExpression qui appelle la fonction « Second » canonique avec l’argument spécifié, qui doit avoir un résultat de type DateTime, DateTimeOffset ou Time. Le résultat de l’expression est de type Edm.Int32.

public:
[System::Runtime::CompilerServices::Extension]
 static System::Data::Common::CommandTrees::DbFunctionExpression ^ Second(System::Data::Common::CommandTrees::DbExpression ^ timeValue);
public static System.Data.Common.CommandTrees.DbFunctionExpression Second (this System.Data.Common.CommandTrees.DbExpression timeValue);
static member Second : System.Data.Common.CommandTrees.DbExpression -> System.Data.Common.CommandTrees.DbFunctionExpression
<Extension()>
Public Function Second (timeValue As DbExpression) As DbFunctionExpression

Paramètres

timeValue
DbExpression

Expression qui spécifie la valeur dans laquelle la seconde doit être récupérée.

Retours

Nouvelle DbFunctionExpression qui retourne la deuxième valeur entière à partir de timeValue.

Exceptions

timeValue a la valeur null.

timeValue n'est pas valide.

S’applique à