SqlServerDbFunctionsExtensions.AtTimeZone メソッド

定義

オーバーロード

AtTimeZone(DbFunctions, DateTime, String)

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

AtTimeZone(DbFunctions, DateTimeOffset, String)

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

AtTimeZone(DbFunctions, DateTime, String)

ターゲット 内の対応する に変換dateTimeしますdatetimeoffsettimeZone。 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変換の結果の 。

注釈

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

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

適用対象

AtTimeZone(DbFunctions, DateTimeOffset, String)

で指定されたタイム ゾーンにtimeZone変換dateTimeOffsetします。 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へのアクセス」を参照してください。

適用対象