且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

IQueryable与IQueryable< T>

更新时间:2022-03-13 15:02:23

通用IQueryable<T>是您在方法中最常使用的 签名等. 非通用IQueryable主要存在于 为您提供主要用于动态查询的弱类型入口点 构建方案.

The generic IQueryable<T> is the one you use most often in method signatures and the like. The non-generic IQueryable exist primarily to give you a weakly typed entry point primarily for dynamic query building scenarios.

来自 LINQ:构建可查询的提供程序-第一部分

您应该尽可能使用通用IQueryable<T>.

You should use generic IQueryable<T> everywhere it's possible.