EdmFunctions.Millisecond(DbExpression) Metod

Definition

Skapar en DbFunctionExpression som anropar den kanoniska millisekundersfunktionen 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 ^ Millisecond(System::Data::Common::CommandTrees::DbExpression ^ timeValue);
public static System.Data.Common.CommandTrees.DbFunctionExpression Millisecond(this System.Data.Common.CommandTrees.DbExpression timeValue);
static member Millisecond : System.Data.Common.CommandTrees.DbExpression -> System.Data.Common.CommandTrees.DbFunctionExpression
<Extension()>
Public Function Millisecond (timeValue As DbExpression) As DbFunctionExpression

Parametrar

timeValue
DbExpression

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

Returer

En ny DbFunctionExpression som returnerar heltals millisekundersvärdet från timeValue.

Undantag

timeValue är null.

timeValue är ogiltigt.

Gäller för