Posts
288
Comments
25
Trackbacks
207
August 2006 Entries
Revisiting LINQ

Over the last week I've been revisting LINQ, actually spending some time working with it. In the past I've been wary, critical even, of some of the requirements for using LINQ, but I'm relaxing my stance a little in light of the ADO.NET vNext Entity Data Framework. Together, LINQ and EDF are awesome. My test project, whch is for a conference keynote this week, showns LINQ and EDF allowing me to delete 12 classes and simplify the business logic in a trivial site; for larger scale applications it coud have even more benefits. One of the things that attracts me to this, now that I've had more time to work with it, is that the business logic can be placed in a more natural place; often we end up placing business logic in our database, in stored procedures, because that's where the data is fetched. For things like filtering rowsets this is sensible, filter close to the source to reduce data transfer. But it's still business logic and sometimes doesn't sit easily within the database. With the EDF you have little to do with the database itself; EDF maps entities to underlying tables, providing a rich, strongly typed view of the data. This means that queries, using LINQ, can define the business logic; EDF handles the conversion of this to SQL, so the filtering is still done in the right place, close to the data, but it is also defined in the right place, in the business layer.

LINQ is slightly ahead of EDF in completeness, with a fair number of LINQ constructs not yet implemented in EDF, but the potential is huge. I now can't wait for the next CTP to see how it progresses.

[Listening to: Shitloads of Money - Liz Phair - whitechocolatespaceegg]
posted @ Monday, August 21, 2006 5:56 PM | Feedback (1)
Shameless Plug
Bookpool are promoting the ASP.NET 2.0 Illustrated book, at almost 50% off. So don't go a buy it from there. No. Go to a bookshop and pay full price. Even if it's on discount, insist on paying the full price. In fact, buy one for a friend too.
[Listening to: Solid Air - John Martyn - Solid Air]
posted @ Tuesday, August 15, 2006 4:13 PM | Feedback (2)
ASP.NET Caching
Tess has a couple of intereting posts on the Cache object. Well worth reading, including the comments: .NET Memory Leak Case Study and ASP.NET Quiz Answers: Does Page.Cache leak memory?. If you're not already subscribed to her blog, then I recommend you should; you can learn alot about .NET from it.
posted @ Friday, August 11, 2006 11:55 AM | Feedback (1)