.NET 7 SQL Server CRUD Operations in Web API using Entity Framework Core

Опубликовано: 05 October 2024
на канале: Code-Academy
620
12

Table of Contents:
00:00:00 | Introduction to CRUD operations in Web API.
00:02:10 | Creating Web API project.
00:04:00 | Installing SQL Server, EFCore, EFCore.Tools Nuget packages.
00:05:32 | Setting up the SQL Server database connection string.
00:07:00 | Registering SQL Server database connection.
00:09:25 | Creating Application Db Context class.
00:11:53 | Creating models.
00:14:39 | Adding Database Migration.
00:17:20 | Creating API Controller to perform CRUD operations.
00:17:49 | Creating Constructor to initiate database connection.
00:18:22 | Create operation.
00:23:32 | Read operation.
00:26:35 | Update operation.
00:30:16 | Delete operation.

Download source code | https://github.com/CodeAcademyCA/EFCo...

Related Videos
   • .NET 7 SQL Server CRUD Operations in ...   | CRUD Operations in Web API using Entity Framework Core EF7 with SqlServer.
   • .NET 7 EFCore All Relationships (One-...   | EFCore Relationships (One-to-One, One-to-Many, Many-to-Many) in Web API with SQL Server.
   • .NET 7 AutoMapper Data Transfer Objec...   | AutoMapper Data Transfer Objects DTOs explained
   • .NET 7 Navigation Component in Blazor...   | Navigation Component in Blazor Web Assembly using NavigationLock
   • .NET 7 Object Relational Mapper (ORM)...   | Object Relational Mapper ORM Explained for Everyone
   • .NET EFCore | Scaffold SQL Database w...   | Scaffold SQL Database with DB First migration in Web API using EntityFrameworkCore.
   • .NET EFCore | Web API Entity Framewor...   | Web API EntityFrameworkCore (EF7) Pagination using Skip() and Take() methods.
   • .NET EFCore | Send Email in Web API u...   | Send Email in Web API using Mailkit SMTP.
   • .NET EFCore | AutoMapper Data Transfe...   | AutoMapper Data Transfer Objects DTO with Web API Explained.
   • Video   | Blazor WebAssembly Chat with SignalR using WebSockets.
   • .NET EFCore | Create JSON Web Token (...   | Create JSON Web Token (JWT) for User Registration and Login using Password Hash and Salt.
   • .NET EFCore | EFCore All Relationship...   | EFCore All Relationships (11, 1n, nn ) with Entity Framework Core SQL Server.
   • .NET EFCore | Read JWT Authorization ...   | Web API Role - Based Authorization with JSON Web Token (JWT).

What is SQL Server
SQL Server is a relational database management system, or RDBMS, developed and marketed by Microsoft. Similar to other RDBMS software, SQL Server is built on top of SQL, a standard programming language for interacting with relational databases. SQL Server is tied to Transact-SQL, or T-SQL, the Microsoft’s implementation of SQL that adds a set of proprietary programming constructs.

SQL Server works exclusively on the Windows environment for more than 20 years. In 2016, Microsoft made it available on Linux. SQL Server 2017 became generally available in October 2016 that ran on both Windows and Linux.

What is SQL Server used for?
Microsoft SQL Server is a relational database management system (RDBMS) that supports a wide variety of transaction processing, business intelligence and analytics applications in corporate IT environments.

What is CRUD in API?
CRUD stands for Create, Read, Update, and Delete, which make up these four fundamental operations. Because REST API calls invoke CRUD operations, understanding their relationship with one another is important for API developers and data engineers.