A professional C# Windows Forms desktop application for managing customer orders, inventory tracking, and administrative operations. Built with Entity Framework 6 and SQL Server backend.
- Order Management: Create, update, and track customer orders
- Inventory Management: Monitor product stock levels and availability
- Customer Management: Maintain and manage customer information
- Admin Panel: Administrative controls and user management
- User Authentication: Secure login system with admin registration
- Activity Logging: Track all system operations and changes
- Real-time Updates: Live stock status monitoring
- Language: C# (.NET Framework 4.7.2)
- UI Framework: Windows Forms
- Database: SQL Server
- ORM: Entity Framework 6.5.1
- Architecture: Layered (Models, Services, UI Forms)
OrderManagement/
├── Fromss/ # User Interface Forms
│ ├── Form1.cs # Main application window
│ ├── AdminSign.cs # Admin login form
│ ├── AdminRegister.cs # Admin registration form
│ ├── Shopping.cs # Order/Shopping form
│ └── StokDurum.cs # Stock status form
├── Models/ # Data Models
│ ├── AppDbContext.cs # Entity Framework DbContext
│ ├── Order.cs # Order entity
│ ├── Costumer.cs # Customer entity
│ ├── Product.cs # Product entity
│ └── Log.cs # Activity log entity
├── Services/ # Business Logic
│ └── OrderLogManager.cs # Order and logging operations
├── Migrations/ # Entity Framework Migrations
├── App.config # Application configuration
└── OrderManagement.csproj # Project file
- .NET Framework 4.7.2 or higher
- Visual Studio 2019 or later (Community, Professional, or Enterprise)
- SQL Server 2016 or higher
- NuGet Package Manager
- Clone the repository:
git clone https://github.com/ecemy3/OrderManagement.git
cd OrderManagement- Open the solution in Visual Studio:
OrderManagement.sln-
Restore NuGet packages:
- Right-click on the solution in Solution Explorer
- Select "Restore NuGet Packages"
-
Configure your database connection:
- Edit
App.configand update the connection string - Default connection string key:
DefaultConnection
- Edit
-
Update the database:
- Open Package Manager Console
- Run:
Update-Database
-
Build and run:
- Press
Ctrl+F5or click "Start Without Debugging"
- Press
The application uses Entity Framework Code-First migrations. After updating the connection string in App.config, run:
Update-DatabaseThis will automatically create the database schema with all necessary tables.
- Run the application
- Use admin credentials to log in or register a new admin account
- Navigate through the dashboard to:
- Create and manage orders
- Track inventory
- Monitor activity logs
| Form | Purpose |
|---|---|
| Form1 | Main dashboard and navigation hub |
| AdminSign | Secure admin login interface |
| AdminRegister | Create new admin accounts |
| Shopping | Order creation and management |
| StokDurum | Real-time inventory status |
Edit App.config to configure:
- Database Connection: Update
DefaultConnectionconnection string - Application Settings: Modify settings in the
<applicationSettings>section
Example connection string:
<add name="DefaultConnection"
connectionString="Server=YOUR_SERVER;Database=OrderManagement;User Id=sa;Password=YOUR_PASSWORD;"
providerName="System.Data.SqlClient" />Add-Migration MigrationName
Update-Database- EntityFramework 6.5.1
- System.Windows.Forms
- System.ComponentModel.DataAnnotations
View full dependencies in packages.config
- Fork the repository
- Create a feature branch (
git checkout -b feature/YourFeature) - Commit your changes (
git commit -m 'Add YourFeature') - Push to the branch (
git push origin feature/YourFeature) - Open a Pull Request
This project is licensed under the MIT License - see the LICENSE file for details.
ecemy3 - Initial development
For issues, bugs, or feature requests, please open an issue on the GitHub repository.
- Initial release with core features
- Order and inventory management
- Admin authentication system
- Activity logging