DbExpressionBuilder.Scan 方法
[本页针对的是实体框架版本 6。最新版本以“实体框架”NuGet 包的形式提供。有关实体框架的更多信息,请参见 msdn.com/data/ef。]
创建一个新的 DbScanExpression,它引用指定的实体集或关系集。
命名空间: System.Data.Entity.Core.Common.CommandTrees.ExpressionBuilder
程序集: EntityFramework(在 EntityFramework.dll 中)
语法
声明
<ExtensionAttribute> _
Public Shared Function Scan ( _
targetSet As EntitySetBase _
) As DbScanExpression
用法
Dim targetSet As EntitySetBase
Dim returnValue As DbScanExpression
returnValue = targetSet.Scan()
public static DbScanExpression Scan(
this EntitySetBase targetSet
)
[ExtensionAttribute]
public:
static DbScanExpression^ Scan(
EntitySetBase^ targetSet
)
static member Scan :
targetSet:EntitySetBase -> DbScanExpression
public static function Scan(
targetSet : EntitySetBase
) : DbScanExpression
参数
- targetSet
类型:System.Data.Entity.Core.Metadata.Edm.EntitySetBase
要引用的实体或关系集的元数据。
返回值
类型:System.Data.Entity.Core.Common.CommandTrees.DbScanExpression
基于指定的实体或关系集的一个新的 DbScanExpression。
使用说明
在 Visual Basic 和 C# 中,可以在 EntitySetBase 类型的任何对象上将此方法作为实例方法来调用。当使用实例方法语法调用此方法时,请省略第一个参数。有关详细信息,请参阅https://msdn.microsoft.com/zh-cn/library/bb384936(v=vs.113)或https://msdn.microsoft.com/zh-cn/library/bb383977(v=vs.113)。
异常
例外 | 条件 |
---|---|
ArgumentNullException | targetSet 为 null。 |
请参阅
参考
System.Data.Entity.Core.Common.CommandTrees.ExpressionBuilder 命名空间