EmpireManager is a comprehensive web application designed to streamline business operations by effectively managing various aspects of the organization. It provides a centralized platform for handling employees, clients, products, orders, and sales items, catering to the diverse needs of a business environment.
- Employees: Add, delete, modify, search by ID and name, list all employees.
- Clients: Add, delete, modify, search by ID and name, list all clients.
- Products: Add, delete, modify, search by ID and name, list all products.
- Orders: Register sales, list sales.
- Sales Items: Insert, delete sales items.
- .NET Core 8.0:
- Entity Framework Core:
- SQL Server:
The project is organized as follows:
- EmpireManager.Domain: Contains domain classes such as Funcionario, Cliente, Produto, Pedido, and ItemVenda.
- EmpireManager.Data: Contains the database context (ApplicationDbContext) and migration configurations.
- Controllers: Contains controllers for each entity, responsible for handling HTTP requests and interacting with the database.
- Microsoft.EntityFrameworkCore
- Microsoft.EntityFrameworkCore.Design
- Microsoft.EntityFrameworkCore.SqlServer
- Microsoft.EntityFrameworkCore.Tools
The database integration was done using Entity Framework Core with the SQL Server provider. Migrations were used to manage the database structure.
dotnet ef migrations add InitialCreate
dotnet ef database update
appsettings.json
SQL Server authentication:
"DefaultConnection": "Server=exmp\\SQLEXPRESS;Database=ReservationSystemDb;Trusted_Connection=True;MultipleActiveResultSets=true"
appsettings.json
Windows Authentication:
"DefaultConnection": "Server=exmp\\SQLEXPRESS;DataBase=ReservationSystemDb;Integrated Security=SSPI;TrustServerCertificate=True"
- Clone the repository to your local machine.
- Ensure you have the .NET SDK installed.
- Open the project in your preferred code editor.
- Configure the database connection string in the
appsettings.json
file. - Run the
dotnet run
command in the terminal to start the application.