Aracılığıyla paylaş


EdmFunctions.CreateDateTime Yöntem

Tanım

Belirtilen bağımsız değişkenlerle kurallı 'CreateDateTime' işlevini çağıran bir DbFunctionExpression oluşturur. second Edm.Double sonuç türüne sahip olmalıdır, diğer tüm bağımsız değişkenlerin ise Edm.Int32 sonuç türüne sahip olması gerekir. İfadenin sonuç türü Edm.DateTime'dır.

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

Parametreler

year
DbExpression

Yeni DateTime örneğinin yıl değerini sağlayan ifade.

month
DbExpression

Yeni DateTime örneği için ay değerini sağlayan ifade.

day
DbExpression

Yeni DateTime örneğinin gün değerini sağlayan ifade.

hour
DbExpression

Yeni DateTime örneğinin saat değerini sağlayan ifade.

minute
DbExpression

Yeni DateTime örneği için dakika değeri sağlayan ifade.

second
DbExpression

Yeni DateTime örneği için ikinci değeri sağlayan ifade.

Döndürülenler

Belirtilen değerlere göre yeni bir DateTime döndüren yeni bir DbFunctionExpression.

Özel durumlar

year, month, day, hour, , minuteveya second şeklindedir null.

year, month, day, hour, , minuteveya second geçersiz.

Şunlara uygulanır