EdmFunctions.Day(DbExpression) 方法

定义

创建一个 DbFunctionExpression,它调用具有指定自变量的规范“Day”函数,其必须具有 DateTime 或 DateTimeOffset 结果类型。 该表达式的结果类型为 Edm.Int32。

public:
[System::Runtime::CompilerServices::Extension]
 static System::Data::Common::CommandTrees::DbFunctionExpression ^ Day(System::Data::Common::CommandTrees::DbExpression ^ dateValue);
public static System.Data.Common.CommandTrees.DbFunctionExpression Day (this System.Data.Common.CommandTrees.DbExpression dateValue);
static member Day : System.Data.Common.CommandTrees.DbExpression -> System.Data.Common.CommandTrees.DbFunctionExpression
<Extension()>
Public Function Day (dateValue As DbExpression) As DbFunctionExpression

参数

dateValue
DbExpression

一个表达式,该表达式指定应从中检索日的值。

返回

一个新的 DbFunctionExpression,从 返回整数日值 dateValue

例外

dateValuenull

dateValue 无效。

适用于