July 2008 - Posts

0
Comments

Is Your Linq Query being executed on the database? by zhirani

Depending on the approach you take when writing linq query, you may be surprised that some of the operations are getting performed in memory instead of the call being translated to sql and executed on the database. When you apply aggregate operators on...
1
Comments

Using AsQueryable With Linq To Objects And Linq To SQL by zhirani

AsQueryable is a method that allow the query to be converted to an instance of IQueryable. When you use AsQueryable operator on an existing query and apply further transformations such as applying a filter or specifying a sort order, those lambda statements...
0
Comments

Handling Errors in Asp.net Ajax using ScriptManager by zhirani

Asp.net Ajax offers variety of ways to handle error that occur when the page is posted back asynchronously. Every time an error occurs in an asynchronous page request, script manager will raise an onasyncpostbackerror event. If you need to customize the...
4
Comments

TODO comments in Vs 2008 service pack 1 by zhirani

I have been using TODO comments in visual studio since vs 2003. It helps me keep track of all the items that I eventually want to get to but don't have the time to do it on time to meet my release date.  You can access the todo list from the view...
3
Comments

Navigating Quickly in Vs 2008 Service Pack 1 by zhirani

In the past, to navigate around bunch of files opened in vs 2008, I tend to use Cntrl + Tab to reach a particular file. It certainly is a good option but when you have large number of files opened in the project, you end up spending enormous amount of...
Filed under:
2
Comments

Creating Hello World With Silverlight by zhirani

I finally have to embrace Silverlight as my team decided to use silver in building part of our community site. I had been trying to avoid Silverlight since 1.0 version, feeling that my Ajax skills and asp.net concepts would be all I need to do my daily...
0
Comments

Combining Expression Trees by zhirani

Today, I was working with expression trees and had the need to combine two expression trees. It appears that when you try to combine two expression trees, it doesn't work. Compiler raises an an exception and does not allow combining two expression trees...
0
Comments

Modifying Expression Trees by zhirani

As I have started to play more with expression trees, I decided to learn how to modify expression trees. Well expression trees cannot be modified because they are read only. In order accomplish modification, you have to create a brand new tree, copy the...
1
Comments

Sorting Child Collections In Entity Framework by zhirani

I made a blog post earlier, where I discussed how to use AssociateWith method on DataLoadOptions to sort child collections on SQL server before they are loaded into memory. This option is only available in linq to SQL. In entity framework, in order to...
0
Comments

Ordering Lazy Loaded Child Collections on the database by zhirani

I have been working with OR mappers for more than 3 years and had the luxury to work with many different ones such as Wilson, NHibernate, Sonic and Linq. One of the constraints that I have encountered in most ormappers is, there is no clean way to define...
More Posts Next page »