Contents tagged with LINQ
-
Using TPL and PLINQ to raise performance of feed aggregator
In this posting I will show you how to use Task Parallel Library (TPL) and PLINQ features to boost performance of simple RSS-feed aggregator. I will use here only very basic .NET classes that almost every developer starts from when learning parallel programming. Of course, we will also measure how every optimization affects performance of feed aggregator.
-
Entity Framework 4.0: Optimal and horrible SQL
Lately I had Entity Framework 4.0 session where I introduced new features of Entity Framework. During session I found out with audience how Entity Framework 4.0 can generate optimized SQL. After session I also showed guys one horrible example about how awful SQL can be generated by Entity Framework. In this posting I will cover both examples.
-
.NET Framework 4.0: Comparing LINQ and PLINQ performance
In one of my sessions I demonstrated how PLINQ uses two CPU-s instead of one and has better performance than non-parallel processing. In this posting I will introduce my experiment and show you my example results. In the end of this posting you can find source code that is ready for demonstration.
-
Using LINQ and reflection to find matching properties of objects
As a side product of some experiments I wrote simple LINQ query that matches properties of two objects and returns these properties as list. The code I wrote is pretty simple and I packed it for you as method.
-
.Net Framework 4.0: System.IO.File supports now IEnumerable<string>
.Net Framework 4.0 adds also some new and cool features to file system objects. File class has now ReadLines() methods that returns IEnumerable<string>. WriteAllLines() methods has two overload methods that accept IEnumerable<string> instead of strings array that was also supported in previous versions of .Net Framework. This posting introduces ReadLines() and WriteAllLines() methods and gives you some ideas how to use these methods in your applications.
-
Using LINQ to query object hierarchies
I used LINQ to solve the following problem: find all titles of objects at hierarchy level X when you know object ID in hierarchy level Y. I cannot imagine if there is some other solution that is same short and clear as one that LINQ provides. Take a look and decide by yourself.
-
Links 2009-08-19
JQuery and web development
- Limit Number of Characters in a TextArea using jQuery
- Find out which Key was pressed using jQuery
- jQuery Superfish Menus Plug-in
- Make website images look like a video with this CSS effect
- CSS2 – opacity
Mobile
- 55 per cent of subscribers think content is too expensive
- RIM Files Patent for Merged Capacitive and Resistive Touchscreen
- HTC patents magnetic stylus for capacitive screens
Sharepoint
- Programmatically creating Wiki Pages
- Presenting MOSS Support Explorer (Not even Beta Yet)
- "This week in Pictures" web part in Sharepoint 2007 and Time Interval
- #SharePoint Site Collections and 100Gb Content Database guidance
Social Networks
- Facebook spam
- Twitter Co-Founder Evan Williamsā€™ Wife Tweets to the World While in Labor
- Twitter-Written Opera Will Debut at Royal Opera House
- Stop the Presses! 40% of Tweets Are 'Pointless Babble'
- Twitter Used to Manage Botnet, Says Security Expert
Software
- DB Schema Viewer
- Game program for kids less than 2 years :)
- Using TCP Analyzer to Debug TCP Performance
- O3D:- Google Releases 3D support open api for web browsers
- Community Clips
- Remote Server Administration Tools RSAT for Windows 7 Released
Programming
- Multimethods in C# 4.0 with 'dynamic'
- Implementing Parallel While with Parallel.ForEach
- Instantiating interfaces
- Using Linq with Microsoft Word and Excel
- 20 tips to write a good stored procedure (is really just 12)
- Using the innerText Property in Firefox
Other stuff
- How to reset regional language to English in Windows Live Writer (Live Writer)
- Nhibernate and the Null object pattern (programming)
- Preparing Today for SharePoint 2010 Q&A (SharePoint 2010)
- What is a Smart Client anyway? (varia)
- WER Services : The Three Cs of Response Satisfaction (Windows)
- Download details: Virtual Hard Disk Getting Started Guide (virtual-pc)
- Creating Visual Guidelines inside Visual Studio (Visual Studio)
- Google’s Decision to Launch the Chrome Operating System Reflects the Growing Importance of Web Applications (Google)
- Google Services for Websites Adds New Tools (Google)
-
Entity Framework 4.0: POCOs and table-per-type inheritance mapping
In my previous posting Entity Framework 4.0: How to use POCOs I introduced how simple it is to use POCOs with Entity Framework 4.0. In this posting I will refactor my photo gallery model a little bit and introduce you how to implement table-per-type inheritance mapping on Entity Framework 4.0.
-
Entity Framework 4.0: How to use POCOs
Entity Framework 4.0 will provide us with POCO support. That’s good because Entity Framework supports more inheritance mapping strategies than LINQ To SQL but currently it doesn’t support POCOs. To try out Visual Studio 2010 and ASP.NET 4.0 new features I started writing simple photo gallery web application. Today I got my first simple POCOs work with Entity Framework 4.0.
-
.Net Framework 4.0: System.Linq.Parallel
.Net Framework 4.0 has parallel computing extensions for LINQ. Previously it was possible to download parallel extensions for LINQ separately from CodePlex. Of course, you can still use these extensions if you have older version that 4.0. I wrote a little, simple and pretty pointless example that illustrates how parallel queries work in .Net Framework 4.0.