Wriju's BLOG

.NET, Cloud and everything

C# 3.0 : Anonymous Type and .NET Reflection Hand-in-Hand

Anonymous Type is nothing but the type which gets defined by CLR (not you). So that type is as rich as any other normal type. Probably the conventional way to find the components of an Anonymous Type through reflection would be clearer to us,   static void Main() {     //Anonymous Type     var anyType… Read more

Pattern’s and Practices Guidance Explorer

This is one tool which will help you to find anything and everything for what you might scratch your head.   This tool is amazing. Please go ahead and install from Download Download GuidanceExplorer build 20060926 http://www.codeplex.com/guidanceExplorer/Project/FileDownload.aspx?DownloadId=2716   This is the best Guidance you can get in your day to day programming.   Namoskar!!!… Read more

Visual Studio 2008 : How to add Visualizer for LINQ

There are two very important visualizers for LINQ which are not part of default installation.   The visualizers are Ø       ExpressionTree Visualizer Ø       SqlServerQuery Visualizer     Both the visualizers are available from   Visual Basic Samples for Visual Studio 2008 Beta 2   Visual C# LINQ and language samples for Visual Studio 2008 Beta 2  … Read more

LINQ to SQL : Change in DataContext from Beta 1 to Beta 2

During the demonstration I have noticed that two major methods of DataContext has changed from Beta 1 to Beta 2.   First one, is the new name for the class DataShape(). Now there is no class called DataShape() but we have DataLoadOptions().     var loadOption = new DataLoadOptions();            loadOption.LoadWith<Customer>(c => c.Orders);   db.LoadOptions =… Read more

LINQ to SQL : Paging Data

When we work with relational database and especially when with larger data we generally go for custom paging. This allows us to create superfast application.   The simple logic for paged query is like,   Let’s suppose you have 100 rows. Now you want to get data of page size 10 for page 2.  … Read more