【发布时间】:2011-02-02 01:33:17
【问题描述】:
如果我实现这个接口:
public interface IProductsRepository
{
IQueryable<Product> Products { get; }
}
... 使用 Linq to SQL
这会产生真正的数据库查询吗?
var x = from p in repositoryInstance.Products where price > 100;
如果是这样,我怎样才能避免调用者执行复杂而缓慢的 sql 语句?
【问题讨论】:
标签: .net sql linq repository-pattern