EdmFunctions.BitwiseOr(DbExpression, DbExpression) 方法

定义

创建一个 DbFunctionExpression ,它使用指定的参数调用规范“BitwiseOr”函数,该函数必须具有相同的整数数值结果类型。 表达式的结果类型与参数的类型相同。

public:
[System::Runtime::CompilerServices::Extension]
 static System::Data::Common::CommandTrees::DbFunctionExpression ^ BitwiseOr(System::Data::Common::CommandTrees::DbExpression ^ value1, System::Data::Common::CommandTrees::DbExpression ^ value2);
public static System.Data.Common.CommandTrees.DbFunctionExpression BitwiseOr(this System.Data.Common.CommandTrees.DbExpression value1, System.Data.Common.CommandTrees.DbExpression value2);
static member BitwiseOr : System.Data.Common.CommandTrees.DbExpression * System.Data.Common.CommandTrees.DbExpression -> System.Data.Common.CommandTrees.DbFunctionExpression
<Extension()>
Public Function BitwiseOr (value1 As DbExpression, value2 As DbExpression) As DbFunctionExpression

参数

value1
DbExpression

一个指定第一个操作数的表达式。

value2
DbExpression

一个指定第二个操作数的表达式。

返回

一个新的 DbFunctionExpression,返回通过执行按位 OR value1value2

例外

value1value2null.

value1value2 无效。

适用于