Contents tagged with ASP.NET Core

  • Sorting and Paging in Blazor using EF Core

    In my last post (CRUD using Blazor and Entity Framework Core), we discussed implementing CRUD using Entity Framework Core.  We also talked about Templated Components, Communication between components, etc.  In this post, we will see about implementing Sorting and Paging in Blazor using EF Core and Web API.  You will be familiar with the following topics after this post.

  • Token Based Authentication in Dotnet Core 3.0

    APIs are now the standard for building and integrating modern applications.  It also evolved as the key enabler in conducting risk-free legacy modernization and they become engines of innovation.  In addition, exposing the services via APIs allows organizations to reach a larger audience, expand into new areas, and reuse existing assets.  Providing security to these APIs is one of the main concerns.  In this post, we will talk about using Token Based Authentication in Dotnet Core.

  • 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.  You will be familiar with the following topics after you read this post.

  • 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 that run client-side in web browsers using open web standards. Let’s get 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.  The solution helps authorize users on application level.  I also mentioned that, I will write 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 that allows you to implement the application authorization rules in code.  In this post, I will explain about Policy based authorization in ASP.NET Core with an implementation example.

  • 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 strategies in detail in this post.

  • Using Google Translation API with Dotnet Core

    Recently i worked on a proof of concept with a requirement of language translation in Web application. There are lot of Language translation services available in the market but most of them failed with more than one parameters i checked for.  The parameters i used for this study are Quality, Performance, Pricing, Ease of integration, Languages supported.  As part of the exercise, I tried integrating some of the leading translation services with .NET application. This is the first post in the series and and i am going to talk about the integration of Google Translation API with Dotnet Core in this.

  • Restrict IP Address ASP.NET Core Web API

    There are several ways to restrict access to a Web server based on the requestor’s IP address.  We can do that from IIS or using inbound Firewall rules. But If you want to restrict access to one of the application deployed in the server based on the IP Address then you have to achieve that programmatically.  In this post, i will guide you on how to restrict IP address in ASP.NET Core

  • Swagger with ASP.NET Core Web API

    APIs allow enterprises to exchange data between systems.  These APIs are just like any application, with the small difference that they don’t have a user interface.  Instead, APIs focus on database operations, validations, executing business rules and other background operations while providing a standard and consistent interface to these activities.