DbExpression Implicit 转换 (Nullable<Guid> to DbExpression)

[本页针对的是实体框架版本 6。最新版本以“实体框架”NuGet 包的形式提供。有关实体框架的更多信息,请参见 msdn.com/data/ef。]

将一个可以为 null 的 Guid 对象转换为 DbExpression

命名空间:  System.Data.Entity.Core.Common.CommandTrees
程序集:  EntityFramework(在 EntityFramework.dll 中)

语法

声明
Public Shared Widening Operator CType ( _
    value As Nullable(Of Guid) _
) As DbExpression
用法
Dim input As Nullable(Of Guid)
Dim output As DbExpression 

output = CType(input, DbExpression)
public static implicit operator DbExpression (
    Nullable<Guid> value
)
static implicit operator DbExpression^ (
    Nullable<Guid> value
)
JScript supports the use of custom casts, but not the declaration of new ones.

参数

返回值

类型:System.Data.Entity.Core.Common.CommandTrees.DbExpression
一个 DbExpression,表示可为 null 的 Guid 对象。

请参阅

参考

DbExpression 类

Implicit 重载

System.Data.Entity.Core.Common.CommandTrees 命名空间