Visual Studio closes/crashes when opening edmx file

Whenever I tried opened the Entity Framework’s edmx file, Visual Studio 2008 would simply close. I tried to google, stack overflow. But couldn’t find the answer. I noticed that when I double clicked on the edmx file, the status bar said “Initializing toolbox” just before closing of Visual Studio. SOLUTION Close all the open windows…

Read More

Linq – Distinct by a particular column

I had a list of tags for a particular user. I wanted to show only unique tags. I initially thought there would be something an inbuilt ‘distinct’ operator in Linq. Unfortunately not. I then discovered the Distinct() function. But it doesn’t support filtering the results by a particular column. Thanks to this StackOverflow question that…

Read More