In this Dapper CRUD operations tutorial we will be building CREATE, READ, UPDATE & DELETE features for 3 tables in a database. These tables are:
Dapper can be used to seed a database with initial data, including creating tables and inserting records into them. In this tutorial, we'll walk through the process of seeding a database using Dapper. Let's get started.
(more…)Apache Web Server can be used to host ASP.NET Core apps. Here Apache is used as a reverse proxy server to redirect traffic to an ASP.NET Core web app running on Kestrel server. We will set the whole process in Windows 10 Operating System.
(more…)In a relational database, two tables can be related through primary and foreign key constraints. A very common relationship is One-to-Many, where each record of one table is related to zero or more records of another table. In Dapper, we execute a SQL JOIN query with the Dapper Query Method to retrieve records from two tables that are in a One-to-Many relationship.
(more…)In a relational database, tables are linked to each other through primary and foreign key constraints. To fetch related records from these linked tables, we use the SQL JOIN command. In Dapper, the Dapper Query method lets us run a SQL query containing a JOIN and retrieve the related records.
(more…)Dapper Query method executes a SQL query or Stored Procedure and returns the result as a dynamic object. This dynamic object can then be mapped to C# strongly typed objects. The Query method takes 1 required SQL parameter and 4 optional parameters.
(more…)Dapper's Execute method runs an SQL query or stored procedure and returns the number of rows affected. It is used for Inserting, Updating, and Deleting records in the database.
(more…)Minimal APIs are used to create HTTP APIs in a quick span of time with minimum dependencies. They are best suited for microservices and apps that require only minimum files with minimum dependencies. In ASP.NET Core Minimal APIs we do not use controllers instead all the API codes are written in the Program.cs file.
(more…)Use jQuery Submit Method - .submit(), to submit any form. The submit method can only be used for the form tag.
(more…)The importance of a reliable Virtual Private Server (VPS) provider cannot be overstated. Your website's performance, security, and overall user experience often hinge on the quality of your VPS hosting. When it comes to finding the best VPS provider, look no further than operavps.com In this comprehensive guide, we will delve into what makes operavps stand out in the competitive world of VPS hosting.
(more…)