SqlFunctions.CurrentTimestamp 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
回傳當前日期和時間。
public:
static Nullable<DateTime> CurrentTimestamp();
[System.Data.Objects.DataClasses.EdmFunction("SqlServer", "CURRENT_TIMESTAMP")]
public static DateTime? CurrentTimestamp();
[<System.Data.Objects.DataClasses.EdmFunction("SqlServer", "CURRENT_TIMESTAMP")>]
static member CurrentTimestamp : unit -> Nullable<DateTime>
Public Shared Function CurrentTimestamp () As Nullable(Of DateTime)
傳回
目前的日期和時間。
- 屬性
備註
你不能直接呼叫這個函式。 此函式只能出現在 LINQ 對 Entities 查詢中。
這個函式會被轉換成資料庫中的對應函式。 關於對應SQL Server函數的資訊,請參見 CURRENT_TIMESTAMP (Transact-SQL)。