QueryableExtensions.AsStreaming 方法 (IQueryable)
[本页针对的是实体框架版本 6。最新版本以“实体框架”NuGet 包的形式提供。有关实体框架的更多信息,请参见 msdn.com/data/ef。]
注意:此 API 现在已过时。
返回将流式处理结果而非缓存它的新查询。 此方法通过调用基础查询对象的 AsStreaming 方法来运行。 如果基础查询对象没有 AsStreaming 方法,则调用此方法将不会有任何影响。
命名空间: System.Data.Entity
程序集: EntityFramework(在 EntityFramework.dll 中)
语法
声明
<ObsoleteAttribute("LINQ queries are now streaming by default unless a retrying ExecutionStrategy is used. Calling this method will have no effect.")> _
<ExtensionAttribute> _
Public Shared Function AsStreaming ( _
source As IQueryable _
) As IQueryable
用法
Dim source As IQueryable
Dim returnValue As IQueryable
returnValue = source.AsStreaming()
[ObsoleteAttribute("LINQ queries are now streaming by default unless a retrying ExecutionStrategy is used. Calling this method will have no effect.")]
public static IQueryable AsStreaming(
this IQueryable source
)
[ObsoleteAttribute(L"LINQ queries are now streaming by default unless a retrying ExecutionStrategy is used. Calling this method will have no effect.")]
[ExtensionAttribute]
public:
static IQueryable^ AsStreaming(
IQueryable^ source
)
[<ObsoleteAttribute("LINQ queries are now streaming by default unless a retrying ExecutionStrategy is used. Calling this method will have no effect.")>]
static member AsStreaming :
source:IQueryable -> IQueryable
public static function AsStreaming(
source : IQueryable
) : IQueryable
参数
- source
类型:System.Linq.IQueryable
要应用 AsStreaming 的 IQueryable。
返回值
类型:System.Linq.IQueryable
应用 AsStreaming 的新查询,如果不支持 AsStreaming,则为源查询。
使用说明
在 Visual Basic 和 C# 中,可以在 IQueryable 类型的任何对象上将此方法作为实例方法来调用。当使用实例方法语法调用此方法时,请省略第一个参数。有关详细信息,请参阅https://msdn.microsoft.com/zh-cn/library/bb384936(v=vs.113)或https://msdn.microsoft.com/zh-cn/library/bb383977(v=vs.113)。