Background Tasks using Hangfire

Hangfire library

What Is Hangfire? Hangfire is a library that allows you to run scheduled tasks in the background without the interaction of the UI thread. This library is similar to CRON jobs or the SQL Server Agent so that you can schedule different tasks. Millions of projects use it, and it’s free. A premium version is also available if you need batches, … 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 why Dapper 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 instead … 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. The primary purpose of a developer is to solve a particular problem, not to find solutions for many issues. Dapper Dapper was built by StackExchange, which also created StackOverflow, and it’s an alternative to Entity Framework. This ORM is … Read more