Language

SqlServerDbFunctionsExtensions.AtTimeZone メソッド

定義

オーバーロード

Name 説明
AtTimeZone(DbFunctions, DateTime, String)

dateTimeをターゲット timeZone内の対応するdatetimeoffsetに変換します。 SQL Server AT TIME ZONEコンストラクトに対応します。

AtTimeZone(DbFunctions, DateTimeOffset, String)

dateTimeOffsetを、timeZoneで指定されたタイム ゾーンに変換します。 SQL Server AT TIME ZONEコンストラクトに対応します。

AtTimeZone(DbFunctions, DateTime, String)

ソース:
SqlServerDbFunctionsExtensions.cs
ソース:
SqlServerDbFunctionsExtensions.cs
ソース:
SqlServerDbFunctionsExtensions.cs
ソース:
SqlServerDbFunctionsExtensions.cs
ソース:
SqlServerDbFunctionsExtensions.cs

dateTimeをターゲット timeZone内の対応するdatetimeoffsetに変換します。 SQL Server AT TIME ZONEコンストラクトに対応します。

public static DateTimeOffset AtTimeZone(this Microsoft.EntityFrameworkCore.DbFunctions _, DateTime dateTime, string timeZone);
static member AtTimeZone : Microsoft.EntityFrameworkCore.DbFunctions * DateTime * string -> DateTimeOffset
<Extension()>
Public Function AtTimeZone (_ As DbFunctions, dateTime As DateTime, timeZone As String) As DateTimeOffset

パラメーター

_
DbFunctions

DbFunctions のインスタンスです。

dateTime
DateTime

datetimeoffsetに変換する値。

timeZone
String

有効なSQL Serverタイム ゾーン ID。

戻り値

変換の結果 datetimeoffset 。

注釈

dateTimeのKindは変換を実行する際には考慮されません。指定されたタイム ゾーンのオフセットは、単に as-is適用されます。

詳細と例については、「データベース関数」および「EF Core を使用したSQL ServerおよびAzure SQLデータベースへのアクセス」を参照してください。

適用対象

AtTimeZone(DbFunctions, DateTimeOffset, String)

ソース:
SqlServerDbFunctionsExtensions.cs
ソース:
SqlServerDbFunctionsExtensions.cs
ソース:
SqlServerDbFunctionsExtensions.cs
ソース:
SqlServerDbFunctionsExtensions.cs
ソース:
SqlServerDbFunctionsExtensions.cs

dateTimeOffsetを、timeZoneで指定されたタイム ゾーンに変換します。 SQL Server AT TIME ZONEコンストラクトに対応します。

public static DateTimeOffset AtTimeZone(this Microsoft.EntityFrameworkCore.DbFunctions _, DateTimeOffset dateTimeOffset, string timeZone);
static member AtTimeZone : Microsoft.EntityFrameworkCore.DbFunctions * DateTimeOffset * string -> DateTimeOffset
<Extension()>
Public Function AtTimeZone (_ As DbFunctions, dateTimeOffset As DateTimeOffset, timeZone As String) As DateTimeOffset

パラメーター

_
DbFunctions

DbFunctions のインスタンスです。

dateTimeOffset
DateTimeOffset

タイム ゾーン変換を実行する値。

timeZone
String

有効なSQL Serverタイム ゾーン ID。

戻り値

変換の結果 datetimeoffset 。

注釈

詳細と例については、「データベース関数」および「EF Core を使用したSQL ServerおよびAzure SQLデータベースへのアクセス」を参照してください。

適用対象