没有Linq时像Linq进行查询 [英] Querying like Linq when you don't have Linq

查看:58
本文介绍了没有Linq时像Linq进行查询的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个正在处理的项目,但目前仅支持.net Framework 2.0.我喜欢linq,但是由于框架版本,我无法使用它.我所需要的不是ORM方面的问题,而是Linq的可查询性"(甚至是一个词?).

I have a project that I'm currently working on but it currently only supports the .net framework 2.0. I love linq, but because of the framework version I can't use it. What I want isn't so much the ORM side of things, but the "queryability" (is that even a word?) of Linq.

到目前为止,最接近的是 llblgen ,但是如果重量更轻一些,为我做查询会更好.

So far the closest is llblgen but if there was something even lighter weight that could just do the querying for me that would be even better.

我还查看了 NHibernate ,它看起来可能会接近于做什么我想要,但是它的学习曲线非常陡峭,并且映射文件不会让我感到过分兴奋.

I've also looked at NHibernate which looks like it could go close to doing what I want, but it has a pretty steep learning curve and the mapping files don't get me overly excited.

如果有人意识到可以为我提供与Linq类似的查询界面(或者甚至更好的方法,如何使Linq在.net 2.0框架上运行),我真的想听听. >

If anyone is aware of something that will give me a similar query interface to Linq (or even better, how to get Linq to work on the .net 2.0 framework) I'd really like to hear about it.

推荐答案

看看这个:

http://www.albahari.com/nutshell/linqbridge.html

Linq是几件不同的事情,我不确定100%需要哪个位,但是以上内容可能会有所帮助.如果您还没有关于Linq的书(我想您还没有),那么我发现"Linq In Action"很好.

Linq is several different things, and I'm not 100% sure which bits you want, but the above might be useful in some way. If you don't already have a book on Linq (I guess you don't), then I found "Linq In Action" to be be good.

这篇关于没有Linq时像Linq进行查询的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆