SqlFunctions.GetDate 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
回傳目前資料庫系統的時間戳記為日期時間值,但不含資料庫時區偏移。 這個值是從執行 SQL Server 執行個體的電腦作業系統得來的。
[System.Data.Entity.DbFunction("SqlServer", "GETDATE")]
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1024:UsePropertiesWhereAppropriate")]
public static Nullable<DateTime> GetDate();
static member GetDate : unit -> Nullable<DateTime>
Public Shared Function GetDate () As Nullable(Of DateTime)
傳回
目前資料庫的時間戳記。
- 屬性