EdmFunctions.CreateDateTime Metódus

Definíció

Létrehoz egy olyan függvényt DbFunctionExpression , amely meghívja a canonical 'CreateDateTime' függvényt a megadott argumentumokkal. second Edm.Double eredménytípussal kell rendelkeznie, míg az összes többi argumentumnak Edm.Int32 eredménytípussal kell rendelkeznie. A kifejezés eredménytípusa: Edm.DateTime.

public:
 static System::Data::Common::CommandTrees::DbFunctionExpression ^ CreateDateTime(System::Data::Common::CommandTrees::DbExpression ^ year, System::Data::Common::CommandTrees::DbExpression ^ month, System::Data::Common::CommandTrees::DbExpression ^ day, System::Data::Common::CommandTrees::DbExpression ^ hour, System::Data::Common::CommandTrees::DbExpression ^ minute, System::Data::Common::CommandTrees::DbExpression ^ second);
public static System.Data.Common.CommandTrees.DbFunctionExpression CreateDateTime(System.Data.Common.CommandTrees.DbExpression year, System.Data.Common.CommandTrees.DbExpression month, System.Data.Common.CommandTrees.DbExpression day, System.Data.Common.CommandTrees.DbExpression hour, System.Data.Common.CommandTrees.DbExpression minute, System.Data.Common.CommandTrees.DbExpression second);
static member CreateDateTime : System.Data.Common.CommandTrees.DbExpression * System.Data.Common.CommandTrees.DbExpression * System.Data.Common.CommandTrees.DbExpression * System.Data.Common.CommandTrees.DbExpression * System.Data.Common.CommandTrees.DbExpression * System.Data.Common.CommandTrees.DbExpression -> System.Data.Common.CommandTrees.DbFunctionExpression
Public Function CreateDateTime (year As DbExpression, month As DbExpression, day As DbExpression, hour As DbExpression, minute As DbExpression, second As DbExpression) As DbFunctionExpression

Paraméterek

year
DbExpression

Egy kifejezés, amely az új DateTime-példány évértékét adja meg.

month
DbExpression

Egy kifejezés, amely az új DateTime-példány hónapértékét adja meg.

day
DbExpression

Egy kifejezés, amely az új DateTime-példány napi értékét adja meg.

hour
DbExpression

Egy kifejezés, amely az új DateTime-példány óraértékét adja meg.

minute
DbExpression

Egy kifejezés, amely az új DateTime-példány percértékét adja meg.

second
DbExpression

Egy kifejezés, amely az új DateTime-példány második értékét adja meg.

Válaszok

Egy új DbFunctionExpression, amely egy új DateTime-t ad vissza a megadott értékek alapján.

Kivételek

year, month, day, hour, minutevagy second van null.

year, month, day, hour, minutevagy second érvénytelen.

A következőre érvényes: