Wordpress - smehrozalam.wordpress.com - Mehroz's Experiments
General Information:
Latest News:
Goodbye GoodCore, Welcome DevEnhanced 1 Jul 2011 | 06:00 am
I have been working at GoodCore Software for more than 4 years. I have had a great time here and learned so much from my colleagues. But I have decided to try something new – Starting July 2011, I hav...
WCF RIA Service adding extra Required attribute on generated classes 28 Apr 2011 | 06:00 am
Few days back, I upgraded a Silverlight 3 RIA application to Silveright 4 bits. Once I fixed all the errors, it appeared that RIA generated entities were “over-validating” themselves. I noticed that a...
Silverlight (and WPF): How to make items stretch horizontally in a ListBox 1 Feb 2011 | 01:55 am
Sometimes we need to use controls like TextBox, TextBlock etc (that set their width automatically depending on content) in a ListBox’s ItemTemplate. If we need to draw Borders or assign Background col...
C#: Fun with Indexers 30 Dec 2010 | 07:00 am
This post refers to an interesting situation when you create a class in C# with an indexer and a property named “Item”. Let’s see why this is not possible simultaneously. Few days back, I got an inte...
RIA Services: Sending complex types to the client 25 Nov 2010 | 12:59 am
Entity Framework 4 allows us to create complex types. Typically, such types are used to get the result of a stored procedure. However, when we try to send such a complex type using a WCF RIA Domain Se...
DataContractSerializer: Working with class inheritence and circular references 27 Oct 2010 | 06:33 am
DataContractSerializer is the default serializer used by WCF Services. Typically, we transmit data objects generated via Entity Framework or LINQ To SQL and do not get any serialization issues as the ...
WCF Service: Getting to the cause of error 15 Sep 2010 | 06:15 am
If you are using WCF service as your mode of communication between client-server applications (and why shouldn’t you, this has been a great source of communication available since .NET 3.5), then ther...
ReportViewer control: Look out for appropriate version when using in Server mode (Remote Processing) 12 Aug 2010 | 06:00 am
The report viewer control (available for Windows Forms as well as ASP.NET applications) is used to display reports in our applications. However, it was an interesting observation for me that the Repor...
TSQL: Some interesting usages of Coalesce 29 Jul 2010 | 07:20 am
The coalesce function is a really powerful function that can help us in various scenarios. It is described in this MSDN document so I am not going to discuss its working in this post. Instead, I will ...
Entity Framework: Queries involving many to many relationship tables 30 Jun 2010 | 03:03 am
Entity framework handles tables participating in Many to Many relationship in a nice manner. If the junction table (sometimes called bridge table, association table, link table, etc) only consists of ...