Background Tasks using Hangfire

Hangfire library

What Is Hangfire? Hangfire is a library that gives you the possibility to run scheduled tasks in the background without the interaction of the UI thread. This library is very similar to CRON jobs or the SQL Server Agent, so you can schedule different tasks. Millions of projects use it and it’s free. There is also a premium version available … Read more

C# Parallel Foreach and Parallel Extensions

Parallel Class

The Parallel class was introduced in .Net Framework 4.0 and can run for and foreach loops in parallel. Parallel Class The Parallel class has three static methods: For – you can iterate collections in parallel using an index Foreach – this is the most used because you specify the collection and body of each loop. Invoke – you can use … Read more

Dapper – The Alternative ORM

Dapper ORM

Dapper is the best alternative for Entity Framework, and in many situations, it is better. In this article, I will explain to you why it’s my favorite ORM. If you think that Dapper is not suitable for you, consider that Stack Overflow uses. Dapper vs Entity Framework The most significant difference between these two is that you write SQL queries … Read more

11 C# Libraries for Developers

C# Libraries

C# offers libraries that are used by millions of projects. Libraries make your life easier because you won’t reinvent the wheel again. The main purpose of a developer is to solve a particular problem, not to find solutions for many problems. Dapper Dapper is built by StackExchange, which also built StackOverflow, and it’s an alternative for Entity Framework. This ORM … Read more