C# 7.0 – Patterns

The concept of patterns was introduced in C# 7.0. The idea is to check if an object reflects a specified shape.

C# 7.0 – Out variables 1

Using out parameters was always a bit painful. The biggest drawback is the need to declare variables before they can be used.

C# 7.0 – Deconstruction

Deconstruction is a nice way to consume tuples. It’s a syntax that allows splitting a tuple into variables.

C# 7.0 – Tuples 1

Tuples first appeared in C# with .NET Framework 4.0. They were supposed to be a lightweight alternative for small classes that were created if a method had to return more than one value.

Code-First Database Design with Entity Framework and PostgreSQL 1

Entity Framework is an Object-Relational Mapper for .NET applications, and the code-first approach using Entity Framework allows developers to use their domain model to build and query databases directly from their data model objects. In this article, we’ll take a look at how to use the Entity Framework in C# […]