CRUD using Blazor and Entity Framework Core

In my last post (Get Started with Blazor), we discussed the Blazor Framework, Hosting models and how to set up authentication and authorization in a Blazor server-side application with an example.  In this post, I am going to explain CRUD using Blazor and Entity Framework Core.  I will use the sample application we have created in the previous post and extend it with the new functionalities we are going to talk about in this post. …

Continue ReadingCRUD using Blazor and Entity Framework Core

Get started with Blazor

Blazor is a new web UI framework based on C#, Razor, and HTML.  This runs in the browser via WebAssembly.  It helps build interactive web UI using C# instead of JavaScript.  This post demonstrates how to build a SPA using Blazor.  Blazor simplifies the task of building fast and beautiful SPAs that run in any browser. It does this by enabling developers to write Dotnet based web apps. These apps run client-side in web browsers…

Continue ReadingGet started with Blazor

Policy based authorization in ASP.NET Core

In my previous article, I explained about restricting users based on the IP Address.  It was implemented by using a whitelist of IP Address and middleware.  Obviously, that solution helps authorize users on the application level.  I also promised another article to explain about restricting users on a controller level or action level.  Policy-based authorization is a new feature introduced in Dotnet Core. This allows you to implement the application authorization rules in code.  In…

Continue ReadingPolicy based authorization in ASP.NET Core

Create NuGet Package and Publish in Dotnet Core

Most of us use NuGet packages in our projects and we are familiar with the procedure of adding a NuGet package to a project.  Have you ever wondered how to create NuGet package?  Let’s discuss in detail how to create and publish NuGet Package. Introduction to NuGet NuGet is a free and open-source package manager designed for the Microsoft development platform.  It is a .NET alike of NPM packages.  A whole library can be encapsulated…

Continue ReadingCreate NuGet Package and Publish in Dotnet Core

Versioning Web API

Change is an inevitable factor in the life cycle of an API.  More and more organizations today face a dynamic and changing environment.  The change is driven by factors within the enterprise like implement a new business model, expand to a new market. It can also be external such as disruptive technologies, new government regulations, changes happen in partner/consumer organization, etc. I will talk about versioning in general and versioning Web API using multiple versioning…

Continue ReadingVersioning Web API