Simple CRUD application built with ASP.NET MVC Web Application. This project is built with a view to exploring Layered Architecture and implementing Repository and Unit of Work design patterns.
Firstly, clone the project-
https://github.com/nayeemsweb/Ticket-Purchase-System.git
Secondly, Open the project in Visual Studio by running the TicketPurchase.sln
solution file -
cd Ticket-Purchase-System/src/TicketPurchase
Thirdly, From the Tools
menu go to NuGet Package Manager
option and click to
Package Manager Console
. Now, update migration using the following command -
dotnet ef database update --project TicketPurchase.Web --context PurchasingDbContext
This will create a database named TicketPurchaseDb
in your SQL Server (actually SSMS) and
also the table(s) accordingly.
SQL Server
and SQL Server Management Studio
installed on your machine.*
In the Ticket-Purchase-System/src/TicketPurchase.Web/
path there is a file named
appsettings.json
. If you face in updating the migration then configure this line -
"DefaultConnection": "Server=.\\SQLEXPRESS;Database=TicketPurchaseDb;Trusted_Connection=True;"
You may change the Server
vaule according to your configuration.
Backend: ASP.NET (Core) 6, Entity Framework (Core), Sql Server
Logger: Serilog
Design Patterns: Repository & Unit of Work
Architecture: Layered Architecture (UI, Business Logic & Data Access Layer)
Frontend: AdminLTE Dashboard Template, Bootstrap
- Ticket Purchase CRUD
- Ajax Search
- Pagination
- Client Side & Server Side Validation
❤️ If you do like my work, hit the ⭐️ button above. ❤️