EdmFunctions.Second(DbExpression) Méthode

Définition

Crée un DbFunctionExpression élément qui appelle la fonction « Second » canonique avec l’argument spécifié, qui doit avoir un type de résultat DateTime, DateTimeOffset ou Heure. Le type de résultat de l’expression est 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 à partir de laquelle la seconde doit être récupérée.

Retours

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

Exceptions

timeValue a la valeur null.

timeValue n’est pas valide.

S’applique à