How do I remove diacritics (accents) from a string in .NET?

Recently, while working with our client from Sweden, we have a task to generate a friendly-url based on their input text a.k.a display name. The problem is how to replace their language by english-base. For example: If they input "ÄäÖöÕõÜü", the expectation will be "AaOoOoUu" Fortunately, .NET worlds and also stackoverflow save us. Here is … Continue reading How do I remove diacritics (accents) from a string in .NET?

Advertisements

Eager loading with DbContext (using Include with Lambda Expression)

Some current days, I faced with a problem with eager loading while using property name as string. But I wanna use lambda. I tried googling and found the solution. In EF4.0,  if we wanna use it, we must install EF CTP5, but this feature has already included in EF4.1. Below are steps to use and … Continue reading Eager loading with DbContext (using Include with Lambda Expression)