Share via


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 から month の日数)。

戻り値

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

注釈

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

適用対象