EdmFunctions.Second(DbExpression) Metod

Definition

Skapar en DbFunctionExpression som anropar den kanoniska funktionen "Second" med det angivna argumentet, som måste ha resultattypen DateTime, DateTimeOffset eller Time. Resultattypen för uttrycket är 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

Parametrar

timeValue
DbExpression

Ett uttryck som anger det värde som den andra ska hämtas från.

Returer

En ny DbFunctionExpression som returnerar det andra heltalsvärdet från timeValue.

Undantag

timeValue är null.

timeValue är ogiltigt.

Gäller för