Skip to content

ShubhamDubey1999/.Net-7-Web-API-Entity-Framework

Repository files navigation

.Net-7-Web-API-Entity-Framework


Introduction

Create your first Web API call in less than 10 minutes

Initialize a Git repository for your source control


Web API

The Model-View-Controller (MVC) pattern

Create models and controllers

Attribute routing (with parameters)

The HTTP request methods GET, POST, PUT & DELETE

Best practices for your Web API like a ServiceResponse class and Data-Transfer-Objects (DTOs)

Map your models with AutoMapper


Entity Framework Core

Object-Relational-Mapping

Code-First Migration

SQL Server Express

How to use a DataContext and a proper ConnectionString

All previous HTTP requests with Entity Framework Core to save your data in a SQL Server database

Data Seeding: Insert data with a migration programmatically


Authentication

Token Authentication with JSON Web Tokens

Claims

Secure controllers with the Authorize attribute

Add roles to the users


Advanced Relationships with Entity Framework Core

One-to-one relationships

One-to-many relationships

Many-to-many relationships

Include entities with Entity Framework Core

Get the proper relations between entities

More Than Just CRUD

Start automatic fights

Filter and order RPG characters by their highscore

Build a complete .NET 7 back-end with Web API, Entity Framework Core, SQL Server Implement Token Authentication with JSON Web Tokens & Roles Utilize all three types of relationships in your database: one-to-one, one-to-many, many-to-many Use the HTTP request methods GET, POST, PUT & DELETE Implement best practices like a proper structure for your Web API, Dependency Injection, asynchronous calls with async/await and Data-Transfer-Objects (DTOs) Use LINQ to filter, sort, map, select and access your entities. Seed data with code-first migrations programmatically

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages