.NET Core v/s .NET Framework
.NET Core and .NET Framework are both developed by Microsoft , but both have major differences.
.NET Framework was first released in 2002 and was limited to Windows OS. However, .NET Core is open-source and was released much recently in 2016 and it supports cross platform development.
.NET Core has been actively developed by developers all around due to its open-source nature.
Now let's see the different types of .NET Core services:
1) .NET Core MVC - This is the standard MVC architecture consisting of Models that connect to the Database, Views that are the pages rendered to the user and Controllers that contain the business logic. This is the preferred type for making large scale complex applications.
2) Razor Pages - It combines the View and Controller into a single page, making it simpler for small applications. It is very useful for small to medium scale applications.
3) Microservices - This type of service breaks down an application into small, independent services that communicate through APIs. Microservice architectures are high in demand due to increasing complexities in applications.
4) Web APIs - These are designed for building RESTful APIs that can be consumed by various clients. This can service as a backend with different frontend technologies like React, Angular, Vue etc.
5) Blazor pages - Considered as the next gen type of service, blazor pages enable client-side web development using C# and .NET instead of JavaScript. In this the does not send the C# code converted into HTML and JS, instead it sends the C# code to the client where it is rendered using C# and .NET. These are blazing fast!
Let's see some an example of a Hello World app using .NET Core and .NET Framework.
.NET Framework
Recommended by LinkedIn
.NET Core
That's it for today!
Like and share if you liked the content!
Follow Mohammed Taherali for more such informative content.
Helpful.
Informative!