By Jeremy Banka
- ๐ต C# / .NET 5 Framework
- ๐๏ธ ASP.NET Core Server
- ๐ Entity Framework Core
- ๐งฎ MySQL Database
- ๐ช Razor Templating
- ๐ SCSS to CSS via Ritwick's Live Sass Compiler
- ๐ ๏ธ Tooling: Omnisharp
๐ ฐ๏ธ Fonts: Verdana & Charter by Matthew Carter
This website is an exercise in building many-to-many relationships in a MySQL database using MS Entity Framework.
-
Get the source code:
$ git clone https://github.com/jeremybanka/Factory.Solution
-
Set up necessary database schema
- Install Entity Framework CLI:
$ dotnet tool install --global dotnet-ef
- Build your database: in
Factory/
, rundotnet ef database update
- Install Entity Framework CLI:
-
Add
appsettings.json
inFactory/
and paste in the following text:{ "ConnectionStrings": { "DefaultConnection": "Server=localhost;Port=3306;database=hair_salon;uid=root;pwd=************;" } }
except, instead of
************
put your password for MySQL. -
Compile and run the app as you save changes:
$ dotnet watch run
inFactory/
(This command will also install necessary dependencies.)
- none identified
Gnu Public License ^3.0
hello at jeremybanka dot com