Author: Vladimir Pecanac

How to Configure PostgreSQL in Entity Framework Core

In this article, we are going to learn how to configure PostgreSQL, a popular and reliable open-source relational database, in our .NET Core application, and connect it to Entity Framework Core to utilize its full potential. If you want to learn more about Entity Framework Core and how to configure it properly, check out our EF Core Series. You can download the source code for this article on our GitHub repository. This article will cover: Installing PostgreSQL Server and pgAdmin Installing the Required Dependencies for PostgreSQL Configuring the PostgreSQL Provider and Connection String Writing a Simple Query to Insert Data in...

Read More

Securing TeamCity on Windows with Let’s Encrypt

TeamCity is currently one of the best build servers out there. It works exclusively on-premises and that means it requires it’s own machine to run on. That is great for companies and individuals that want to have the full control of their resources and JetBrains has made the installation as easy as possible. We are going to assume that you’ve already installed TeamCity on your machine and one build agent on a different machine (best practice). If you haven’t yet you can download TeamCity and start working with it immediately since it is free for 3 build agents and...

Read More

Advanced C# – Dynamic Type

Dynamic type has been added to C# since C# 4.0 (.NET 4.5) and its main purpose is to bypass the static type checks and add more flexibility to the language. In this article, we are going to go through the basic concepts of dynamic type, learn how it works and what we can do with it. To follow along with this article, you can find the source code on Dynamic Type in C# GitHub repo. So here’s exactly what we are going to learn: Static vs Dynamic Languages Advantages of Static and Dynamic Languages What is Dynamic Type in C#...

Read More

Consuming GitHub API (REST) With Flurl

In our article A Few Great Ways to Consume RESTful API in C# we introduced a few different ways to consume a Restful API. This article is about going into details of Flurl library and giving a few examples of how to authenticate and consume a restful API such as GitHub’s. The source code for this article is located here: Flurl Examples. Be sure to fork it and follow along with this article to make most out of it. In this article you’ll learn: What Flurl is and How it Works How to Set up Flurl What Does Flurl Offer?...

Read More

Continuous Integration with TeamCity and Docker

In the previous post we’ve discussed why continuous integration is important, what makes a good CI tool and after that, we’ve set up a basic TeamCity project to build our application using Docker. But continuous integration is much more than that, so in this article, we are going to learn a bit about more advanced features of TeamCity. We are also going to write an integration test to make sure our application is communicating with the database every time we build it. How to Prepare an ASP.NET Core Project for Dockerization Why Docker: Docker CLI Through Examples Dockerizing ASP.NET Core...

Read More