Did you know that the default route of ASP.NET MVC will produce multiple URL's that display the same content? And as I am sure you are aware, duplicate content can cause all sorts of SEO problems. In this post, I will show you three steps to prevent duplicate content with ASP.NET MVC 5. … [Read more...]
Do You Make These Mistakes With Entity Framework?
Entity Framework is a powerful ORM tool which makes storage/retrieval of data simple. Although it's simple to get going, there are a few gotchas that can cripple your app performance. Here's my top 5 list of mistakes to look out for: … [Read more...]
Using C# to Capture a Screenshot that Includes the Mouse Cursor
When creating applications like screen recorders and remote viewers, captured screenshots need to include the mouse cursor. It's easy to capture a screenshot with C#, however, it's a little trickier to include the mouse cursor, because it involves unmanaged calls to the Windows API. … [Read more...]
How to Create a Windows Service
Windows Services are usefull for long running background tasks. In this post we will create a basic service that runs a scheduled task. We will also learn how to add a ProjectInstaller and how to install the service from the command line using InstallUtil. … [Read more...]
7 Ways to Increase the Performance of Entity Framework
My first project that used Entity Framework was a disaster. It was a web application that was so slow; you could make a cup of tea, drink it, wash up, and the home page would still be loading. Was it Entity Framework that was slow? ŠOr was it my mistake? … [Read more...]