Querying like Linq when you don't have 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.
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.
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.
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.
Have a look at this:
http://www.albahari.com/nutshell/linqbridge.html
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.
You might want to check out Subsonic. It is an ORM that uses an ActiveRecord pattern. I'm pretty sure most of its features work with the .NET Framework 2.0.
为了回应Lance所说的 - SubSonic查询语言有一个流畅的界面,它不像LINQ那么漂亮,但为您提供了一些好处(编译时间检查,智能感知等)。
链接地址: http://www.djcxy.com/p/51330.html上一篇: 你曾经拉过最酷的C#LINQ / Lambdas技巧吗?
下一篇: 当你没有Linq时,像Linq一样查询