简体   繁体   English

在不使用ORM的情况下将执行延迟(IQueryable)到数据库级别?

[英]Deferred Execution (IQueryable) to database level without using ORM?

Is there any easy reasonable/feasible way to efficiently pipeline results from the database? 是否有任何简单合理/可行的方法可以有效地从数据库传递结果?

I can't use any ORM tools. 我不能使用任何ORM工具。 I believe LINQ-SQL does this with it's queryable interfaces which is what I wish to do here. 我相信LINQ-SQL使用它的可查询接口来做到这一点,这就是我希望在这里做的。

Based on your answer to the comments above, I think that what youre looking for is the LAZY LOAD PATTERN. 根据您对以上评论的回答,我认为您正在寻找的是LAZY LOAD PATTERN。

In few words, Martin F. describes this pattern as "An object that doesn't contain all of the data you need but knows how to get it." 简而言之,Martin F.将这种模式描述为“一个不包含您需要的所有数据但知道如何获取它的对象”。

So follow these links to learn more: WIKIPEDIA , MARTIN FOWLER 因此,请点击以下链接以了解更多信息: WIKIPEDIAMARTIN FOWLER

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM