notauserx / eastnetic-sales-order-blazor-app

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

eastnetic-sales-order-blazor-app

A sales order management app, built with .NET 6 and c# 10.

Demo

demo-gif

Run

From windows terminal, navigate to the src folder. Then run the api project

dotnet run --project SalesOrders.Api

From the src folder run the Blazor Wasnm app with

dotnet run --project SalesOrders.Client

the browse to the app from this link the browse the swagger from this link

If the solution is opened in Visual Studio, both api and the client projects are set up a startup projects. Use Start(F5) or Start Without Debugging (CTRL + F5) to run the application.

Projects

  • SalesOrder.Api
    • Houses the api controllers
  • SalesOrder.Client
    • The blazor wasm application
  • SalesOrder.Data
    • Houses the DAL. SQLite is configured as the db.
  • SalesOrder.Contracts
    • Houses the DTOs
  • SalesOrder.Core
    • Contains the classes shared between Contracts and Data

Migrations

Migrations are set up in the SalesOrders.Data project.

Install ef core tools globally

dotnet tool install --global dotnet-ef

to add a migration after adding/updating the entities, use

 dotnet ef migrations add <migration-name> --project ../SalesOrders.Data

follow it with

dotnet ef database update

to update the db with the changes from the code first models.

About


Languages

Language:HTML 45.7%Language:C# 44.4%Language:CSS 9.9%