ShadyNagy / Swagger

Implement Swagger with username and password.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Swagger

Source code for Implement Swagger with username and password.

Give a Star! ⭐

If you like or are using this project to learn or start your solution, please give it a star. Thanks!

Animated Screenshots

Working with Swagger by Username and Password.

SwaggerLogin

Migration Scripts

Create migrations:

dotnet ef migrations add InitialModel --context appdbcontext -p ../ShadyNagy.Swagger.Infrastructure/ShadyNagy.Swagger.Infrastructure.csproj -s ShadyNagy.Swagger.Api.csproj -o Data/Migrations

dotnet ef migrations add InitialIdentityModel --context appidentitydbcontext -p ../ShadyNagy.Swagger.Infrastructure/ShadyNagy.Swagger.Infrastructure.csproj -s ShadyNagy.Swagger.Api.csproj -o Identity/Migrations

Apply migrations:

dotnet ef database update -c appdbcontext -p ../ShadyNagy.Swagger.Infrastructure/ShadyNagy.Swagger.Infrastructure.csproj -s ShadyNagy.Swagger.Api.csproj
dotnet ef database update -c appidentitydbcontext -p ../ShadyNagy.Swagger.Infrastructure/ShadyNagy.Swagger.Infrastructure.csproj -s ShadyNagy.Swagger.Api.csproj

Generate script:

dotnet ef migrations script --context appidentitydbcontext -p ../ShadyNagy.Swagger.Infrastructure/ShadyNagy.Swagger.Infrastructure.csproj -s ShadyNagy.Swagger.Api.csproj | out-file ./script.sql

Dependencies:

About

Implement Swagger with username and password.

License:MIT License


Languages

Language:C# 99.5%Language:CSS 0.5%