In this tutorial, we are going to cover Asp.Net Core 3.0 Automapper implementation using a very simple example. Automapper is a very popular Object-to-Object mapping library that can be used to map objects. So, using automapper, we can map one object to another object throughout our application with just a little bit configuration. So, first-of-all, we will create a new Asp.Net Core project in Visual Studio 2019 and then we will install AutoMapper and then we will configure AutoMapper in our project and then we will add model class and a Dto (Data Object Mapper) class and then we will map both (Model class and Dto) and then finally we will see the output.
[Read more…]How to create a .NET Core 3.0 trimmed self-contained single executable app using VS Code
In this tutorial, we are going to learn how to create a Asp.NET Core 3.0 trimmed self-contained app using visual studio code. In this way we can share our application without installing .NET SDK on the target machine. So, first-of-all, we will create an Asp.Net Core 3.0 app, then we will publish it as self-contained app and then we will see how to reduce the files using PublishSingleFile flag and then we will see how to reduce the size of executable using PublishTrimmed flag which is a new feature of .NET Core 3.0 Preview 6.
[Read more…]