Thoughts on .Net & Coding
.Net Articles, tutorials, reviews, code and more...
-
Perform CRUD operations on JSON data using SQL Server and EF Core -- Part 1
Non-relational data is quite common these days. Such a non-relational data is often stored in JSON format. There are database engines available that process JSON documents and allow you to work with data using specialized libraries designed for that purpose. However, at times you need to work with relational and non-relational data together in the same application.
-
Pass a JSON Web Token (JWT) to minimal API using fetch()
In the previous article we learned to call Web API and minimal API using fetch(). Many a times your APIs are secured using JSON Web Token (JWT) based authentication scheme. And you need to pass the JWT while making API calls. In this part of the article we will learn to do just that.
-
Call ASP.NET Core Web API and Minimal API using fetch() -- Part 2
In the previous article we created a Web API controller and minimal APIs that perform CRUD operations on the Customers table. Now it's time to call our APIs from our UI. We could have used a plain HTML page for housing the UI elements but we will use the same MVC view that we have created in the previous examples of this series.
-
Call ASP.NET Core Web API and Minimal API using fetch() -- Part 1
In the previous article we learned how to invoke ASP.NET Core MVC actions using JavaScript fetch(). Now it's time to see how Web APIs and Minimal APIs can be invoked using fetch().
-
CRUD using fetch() and ASP.NET Core MVC
In the previous article we completed the Razor Pages example that uses fetch() to perform CRUD operations. You can use the same technique to call ASP.NET Core MVC controller actions. In this article we will migrate our Razor Pages code to MVC.
-
CRUD using fetch() and Razor Pages in ASP.NET Core -- Part 2
In the previous article we created various page handlers that are supposed to be called from the client side script using fetch() method. Now it's time to build the UI by adding the fetch() calls and client side event handlers.
-
CRUD using fetch() and Razor Pages in ASP.NET Core -- Part 1
In the previous article we discussed the basics of the browser's fetch() API. We also fetched HTML page from the server using GET verb. Now it's time to do something more interesting -- CRUD operations using fetch() and Razor Pages.
-
Learn to fetch() resources in ASP.NET Core
Making Ajax requests from the client side JavaScript code to the server side resources is extremely common requirement in web applications. Traditionally developers used XMLHttpRequest (XHR) object to accomplish this task. Although you can continue to use XHR there is a better alternative - Fetch API.
-
Perform Bulk Updates and Deletes in Entity Framework Core
If you are keeping an eye on the new features of EF Core 7, you are probably aware that it includes what is known as Bulk Updates. To that end, this article discusses what bulk updates are and how to use them in your ASP.NET Core applications.
-
Execute queries and stored procedures using Dapper in ASP.NET Core
In the last few articles we have discussed how ADO.NET data provider classes such as connection, command, and data reader can be used to execute queries. This approach gives total control over the queries we execute and it's also good in terms of performance. However, it requires you to write good amount of code. Won't it be nice if there some way to reduce this mapping code? That' where Dapper can come handy. In this article we will learn to use Dapper in ASP.NET Core apps.