EdmFunctions.CreateDateTimeOffset 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
建立會使用指定的引數叫用標準 'CreateDateTimeOffset' 函式的 DbFunctionExpression。 second 必須具有 Edm.Double 的結果類型,而所有其他引數都必須具有 Edm.Int32 的結果類型。 運算式的結果型別為 Edm.DateTimeOffset。
public static System.Data.Entity.Core.Common.CommandTrees.DbFunctionExpression CreateDateTimeOffset(System.Data.Entity.Core.Common.CommandTrees.DbExpression year, System.Data.Entity.Core.Common.CommandTrees.DbExpression month, System.Data.Entity.Core.Common.CommandTrees.DbExpression day, System.Data.Entity.Core.Common.CommandTrees.DbExpression hour, System.Data.Entity.Core.Common.CommandTrees.DbExpression minute, System.Data.Entity.Core.Common.CommandTrees.DbExpression second, System.Data.Entity.Core.Common.CommandTrees.DbExpression timeZoneOffset);
static member CreateDateTimeOffset : System.Data.Entity.Core.Common.CommandTrees.DbExpression * System.Data.Entity.Core.Common.CommandTrees.DbExpression * System.Data.Entity.Core.Common.CommandTrees.DbExpression * System.Data.Entity.Core.Common.CommandTrees.DbExpression * System.Data.Entity.Core.Common.CommandTrees.DbExpression * System.Data.Entity.Core.Common.CommandTrees.DbExpression * System.Data.Entity.Core.Common.CommandTrees.DbExpression -> System.Data.Entity.Core.Common.CommandTrees.DbFunctionExpression
Public Function CreateDateTimeOffset (year As DbExpression, month As DbExpression, day As DbExpression, hour As DbExpression, minute As DbExpression, second As DbExpression, timeZoneOffset As DbExpression) As DbFunctionExpression
參數
- year
- DbExpression
運算式,提供新 DateTimeOffset 執行個體的年份值。
- month
- DbExpression
運算式,提供新 DateTimeOffset 執行個體的月份值。
- day
- DbExpression
運算式,提供新 DateTimeOffset 執行個體的日期值。
- hour
- DbExpression
運算式,提供新 DateTimeOffset 執行個體的小時值。
- minute
- DbExpression
運算式,提供新 DateTimeOffset 執行個體的分鐘值。
- second
- DbExpression
運算式,提供新 DateTimeOffset 執行個體的秒鐘值。
- timeZoneOffset
- DbExpression
運算式,提供新 DateTimeOffset 執行個體在時區位移值中的分鐘數。
傳回
根據指定值傳回新 DateTimeOffset 的新 DbFunctionExpression。