ASP.NET Core 2.1 preview 1 is already out and available for everyone. Read this post to find out how to get started with it. ASP.NET Core 2.1 comes with lots of new features like HTTPS by default, HTTPClientFactory, SignalR, and others. To know all the new features, you can read this post. So now it’s a good time to migrate existing ASP.NET Core 2.0 application to ASP.NET Core 2.1. (more…)
How to create an Angular 5 app with Visual Studio 2017
Earlier, I posted about creating an Angular 4 app with VS 2017 and also posted a guide to upgrade an Angular 4 app to Angular 5 with VS 2017. Now you can also create Angular 5 app with Visual Studio 2017, without installing any third-party extensions or templates. This post talks about how to create an Angular 5 App with Visual Studio 2017 and how to extend it with a simple example. (more…)
A Quick first look at ASP.NET Core 2.1
Earlier I posted about new features of .NET Core 2.1 and a quick summary of what’s new in ASP.NET Core 2.1, Yesterday ASP.NET Core 2.1 preview was released and available for everyone to play with. So I installed it and here is a quick first look at ASP.NET Core 2.1 preview-1 release. In this post, only a few new features are covered.
Transfer SQL Server Database data to MySQL Database using .NET Core – Part 2
This is in continuation of the Part-1 solution to transfer SQL Server Database data to MySQL Database using .NET Core. If you have not read the first post, please go through it. To give you an overview, the part-1 solution gets all the SQL server database data and creates a serialized and compressed version of a dataset. The part-2 or final solution downloads the compressed file and populates the MySQL database. Let’s see how this is achieved.
(more…)
Transfer SQL Server Database data to MySQL Database using .NET Core – Part 1
Transferring one database data to other databases is not challenging when source and destination database type is same. It becomes a nightmare when source and destination database types are different. To save you from this nightmare, there are plenty of products available for data transfer between different types of databases. But, these tools come with a very high price. I also got into a similar problem and thought of buying one of the products. As you know in a typical software company, buying a licensed product is a time-taking process that requires lots of approvals and justifications. While the process was on, an idea struck and got the solution to transfer SQL Server Database data to MySQL Database using .NET Core. (more…)

Quick summary of what’s new in ASP.NET Core 2.1
Earlier I posted about new features of .NET Core 2.1 having screenshots and video links from the official announcement. Now it’s time to look into things in more detail and with a little explanation to understand things better. Therefore, in this post, find a short and quick summary of what’s new in ASP.NET Core 2.1.
Store complex objects in ASP.NET Core Session
The ASP.NET Core Session object has 3 methods to set the session value, which are Set
, SetInt32
and SetString
. The Set
method accepts a byte array as an argument where the SetInt32
and SetString
method are the extension methods of the Set
method. These methods internally cast the int or string to a byte array. Similar to these, there are 3 methods used to retrieve the value from the session: Get
, GetInt32
and GetString
. There is no method available to store complex objects in session, and this post shows how to store complex objects in ASP.NET Core Session. (more…)
Validate Model State automatically in ASP.NET Core 2.0
A ModelState is a collection of name and value pairs submitted to the server during a POST request. It also contains a collection of error messages for each value. The Modelstate represents validation errors in submitted HTML form values. Model validation is the first statement in each controller action method to check for any error before moving forward. A familiar piece of code.
The IsValid
property will be true when the values are attached correctly to the model AND no validation rules are broken in the binding process. However, writing this piece of code in every action method increases efforts, lines of code and repetitiveness. It would be appropriate to make model validation a reusable piece or even better would be to automate this process. This post talks about how to validate model state automatically in ASP.NET Core 2.0.
(more…)