Author: Marinko Spasojevic

.NET Core 2.0, Angular 4 and MySQL. Part 5

In the previous post, you have created a repository pattern for collecting the data from the database. Now, it is time to use that repository for the business logic. You will keep all the database logic inside the repository classes. Controllers will be responsible for handling requests, model validation and returning responses to the frontend part of the application. By doing so, your controllers won’t be overwhelmed with the code thus making the code easier to read and maintain as well. If you want to see all the basic instructions and complete navigation for this series, please follow the following...

Read More

.NET Core 2.0, Angular 4 and MySQL. Part 4

What is Repository pattern and why should you use it? With the Repository pattern, we create an abstraction layer between the data access and the business logic layer of an application. By using it, we are promoting a more loosely coupled approach to access our data from the database. Also, the code is cleaner and easier to maintain and reuse. Data access logic is in a separate class, or sets of classes called a repository, with the responsibility of persisting the application’s business model. Implementing the repository pattern is our topic for this post. So let’s start. If you want...

Read More

.NET Core 2.0, Angular 4 and MySQL. Part 3

Why is the 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...

Read More

.NET Core 2.0, Angular 4 and MySQL. Part 2

.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

.NET Core 2.0, Angular 4 and MySQL. Part 1

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. If you want to see...

Read More
  • 1
  • 2


the complete guide to http