How sinahileon/librarydatabase_team56 works
This is a small ASP.NET MVC library web app with login, catalog, and patron-book pages, plus controller endpoints documented for catalog lookup and checkout/return. The sampled controller leaves login verification and all catalog/loan operations as TODOs, and does not use the EF context; the graph therefore shows no controller-to-database workflow. The context is configured for MariaDB, but its runtime wiring is not established by the sampled sources.
Main entry points: Team56LibraryContext.cs EF context · HomeController.cs Home controller · CheckedOut.cs Checkout records · Inventory.cs Inventory copies
Components 15
Web application
- ASP.NET host
LibraryWebServer/Program.cs - Home controller
LibraryWebServer/Controllers/HomeController.cs - Login page
LibraryWebServer/Views/Home/Login.cshtml - Catalog page
LibraryWebServer/Views/Home/Index.cshtml - My books page
LibraryWebServer/Views/Home/MyBooks.cshtml - Shared layout
LibraryWebServer/Views/Shared/_Layout.cshtml - Error page
LibraryWebServer/Views/Shared/Error.cshtml
Library data model
- Title records
LibraryWebServer/Models/Titles.cs - Inventory copies
LibraryWebServer/Models/Inventory.cs - Patron records
LibraryWebServer/Models/Patrons.cs - Checkout records
LibraryWebServer/Models/CheckedOut.cs - Patron phones
LibraryWebServer/Models/Phones.cs
Persistence
- EF context
LibraryWebServer/Models/Team56LibraryContext.cs - MariaDB library
Other components
- Library patron
Connections 19
- Library patron → ASP.NET host: sends requests
- ASP.NET host → Home controller: routes requests
- Home controller → Login page: renders login
- Home controller → Catalog page: renders catalog
- Home controller → My books page: renders books
- Home controller → Error page: renders error
- Login page → Shared layout: uses layout
- Catalog page → Shared layout: uses layout
- My books page → Shared layout: uses layout
- EF context → MariaDB library: configures MySQL
- EF context → Title records: maps entity
- EF context → Inventory copies: maps entity
- EF context → Patron records: maps entity
- EF context → Checkout records: maps entity
- EF context → Patron phones: maps entity
- Inventory copies → Title records: references title
- Checkout records → Patron records: references patron
- Checkout records → Inventory copies: references copy
- Patron phones → Patron records: references patron