EdmFunctions.Month(DbExpression) Metódus
Definíció
Fontos
Egyes információk olyan, kiadás előtti termékekre vonatkoznak, amelyek a kiadásig még jelentősen módosulhatnak. A Microsoft nem vállal kifejezett vagy törvényi garanciát az itt megjelenő információért.
Létrehoz egy DbFunctionExpression , a megadott argumentummal megindító "Month" függvényt, amelynek DateTime vagy DateTimeOffset eredménytípussal kell rendelkeznie. A kifejezés eredménytípusa: Edm.Int32.
public:
[System::Runtime::CompilerServices::Extension]
static System::Data::Common::CommandTrees::DbFunctionExpression ^ Month(System::Data::Common::CommandTrees::DbExpression ^ dateValue);
public static System.Data.Common.CommandTrees.DbFunctionExpression Month(this System.Data.Common.CommandTrees.DbExpression dateValue);
static member Month : System.Data.Common.CommandTrees.DbExpression -> System.Data.Common.CommandTrees.DbFunctionExpression
<Extension()>
Public Function Month (dateValue As DbExpression) As DbFunctionExpression
Paraméterek
- dateValue
- DbExpression
Egy kifejezés, amely megadja azt az értéket, amelyből a hónapot le kell kérni.
Válaszok
Egy új DbFunctionExpression, amely az egész hónap értékét adja vissza.dateValue
Kivételek
dateValue az null.
dateValue érvénytelen.