EdmFunctions.Month(DbExpression) 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
创建一个 DbFunctionExpression 调用具有指定参数的规范“Month”函数,该函数必须具有 DateTime 或 DateTimeOffset 结果类型。 表达式的结果类型为 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
参数
- dateValue
- DbExpression
一个表达式,指定应从中检索月份的值。
返回
一个新的 DbFunctionExpression,从中返回整数月值 dateValue。
例外
dateValue 是 null。
dateValue 无效。