Share via


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,返回通过执行 和 value2value1按位 OR 生成的值。

例外

value1value2null

value1value2 无效。

适用于