Language

SqlServerDbFunctionsExtensions.DateFromParts メソッド

定義

指定した年、月、日に DateTime 構造体の新しいインスタンスを初期化します。 SQL ServerのDATEFROMPARTS(year, month, day)に対応します。

public static DateTime DateFromParts(this Microsoft.EntityFrameworkCore.DbFunctions _, int year, int month, int day);
static member DateFromParts : Microsoft.EntityFrameworkCore.DbFunctions * int * int * int -> DateTime
<Extension()>
Public Function DateFromParts (_ As DbFunctions, year As Integer, month As Integer, day As Integer) As DateTime

パラメーター

_
DbFunctions

DbFunctions のインスタンスです。

year
Int32

年 (1753 ~ 9999)。

month
Int32

月 (1 ~ 12)。

day
Int32

日 (1 ~ 月の日数)。

戻り値

指定した年、月、日に DateTime 構造体の新しいインスタンス。

注釈

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

適用対象