Author: Marinko Spasojevic

ASP.NET Core Web API – Logging With NLog

Why is logging so important during the application development? Well, while your application is in the developing stage it is very easy to debug the code and to find out what went wrong. But, can you debug in the production environment? Of course not.  That is why logging messages are a great way to find out what went wrong and where did error happen in your code in the production environment. .NET Core has its own implementation of logging messages, but in all my projects, I prefer to create my own custom logger service.  This is what I am going to...

Read More

ASP.NET Core Web API – .NET Core Service Configuration

.NET Core configuration differs greatly from the standard .NET projects. We don’t have anymore a web.config file but instead, we use a built-in Configuration framework that comes with the .NET Core. Therefore having a good understanding of how to configure your project and how to configure the services, which you will use until the end of the development process, is a must. In this post, I will explain to you how to use the configuration methods in the Startup class. Also, you will learn how to register different services and how to use extension methods to help you achieve...

Read More

ASP.NET Core Web API – Creating MySQL Database

If you wonder is it hard to manipulate the MySql database by using Workbench, well let me tell you that it is not that hard at all but quite opposite. Creating schemas, tables, relations and populating those tables is very easy, once you are familiar with the MySql Workbench tool. By following instructions from this post, you will master skills for creating a database, creating and populating tables, creating relations between those tables and having the backup of your data. Later on, we will use this database to connect .NET Core project to it. Creating a Database for Our...

Read More