Category Archives: General

Save with Encoding in Visual Studio

Hi, This post shows how you can save files while retaining their encoding and line endings format. For example, if you’re writing a shell script that will be run on a UNIX operating system, the script is supposed to have … Continue reading

Posted in General | Tagged , , , , , , , , , , | Leave a comment

Shell script with 10+ parameters? Remember this….

Hi, This post is mainly aimed towards shell script newbies like myself and the goal is that they don’t end up wasting time on this as I had to. So, if you are creating a new shell script that requires … Continue reading

Posted in General | Tagged , , , , , , , , | Leave a comment

Enable TLS1.1 and TLS 1.2 in Fiddler

Hi, This post will explain how you can enable TLS 1.1 and TLS 1.2 in fiddler so you can test your Web Apis with TLS 1.1 or 1.2. In order to do this, navigate to Tools –> Options –> HTTPS … Continue reading

Posted in General | Tagged , , , , , | 2 Comments

CSS Browser Compatibility settings in Resharper

Hi, This post will show you how we can enable/disable browser compatibility settings for CSS in Resharper. This setting is very useful which shows us clearly whether a particular css selector or other css features are compatible with specific versions … Continue reading

Posted in .NET, General | Tagged , , , , , , | Leave a comment

Fixing issue of not being able to add view to Database First Entity Framework model

Hi, If you’re using Database First entity framework (EF) model, you might require to use views. Now to add views to the EF model, the process is straight forward, just the same way we add Tables. However, there is a … Continue reading

Posted in .NET, General | Tagged , , , , , , , , , | Leave a comment

Add file header to new class/other items automatically on creation in Visual Studio

Hi, This post shows how we can make little changes to the Class template in visual studio so that we can add a file header to a newly created class. It’s generally a good practice to add a file header … Continue reading

Posted in General, visual studio | Tagged , , , | 4 Comments

Entity Framework not saving data to database on context.SaveAsync() while using Autofac

Hi, Recently I was using Entity Framework with a DB first approach in an application and using the Repository pattern with Unit of Work to have easy management of DB operations. So my repository constructor accepted an IDataContext object (IDataContext … Continue reading

Posted in .NET, General | Tagged , , , , , , , | Leave a comment