https://github.com/ahmed-gaper/employee-system
Developed during ITI's winter training, this console application implements a Employee System that demonstrates our learnings in C#, object-oriented programming, and database management and design.
https://github.com/ahmed-gaper/employee-system
ado-net microsoft-sql-server mysql oop ssms
Last synced: about 1 month ago
JSON representation
Developed during ITI's winter training, this console application implements a Employee System that demonstrates our learnings in C#, object-oriented programming, and database management and design.
- Host: GitHub
- URL: https://github.com/ahmed-gaper/employee-system
- Owner: Ahmed-Gaper
- Created: 2025-02-09T15:15:37.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-02-09T15:45:48.000Z (over 1 year ago)
- Last Synced: 2025-02-09T16:28:45.802Z (over 1 year ago)
- Topics: ado-net, microsoft-sql-server, mysql, oop, ssms
- Language: C#
- Homepage:
- Size: 5.86 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Employee-System
A simple C# console application that connects to an MS SQL Server database to manage employee records. The application demonstrates how to perform CRUD operations using ADO.NET and provides a menu-driven interface for user interaction.
## Setup Instructions
### 1. Clone the Repository
Clone this repository to your local machine using the following commands:
```bash
git clone https://github.com/yourusername/EmployeeManagement.git
cd EmployeeManagement
```
## 2. Set Up the Database
1. Open SQL Server Management Studio (SSMS).
2. Execute the following SQL script to create the database and table:
```SQL
CREATE DATABASE EmployeeDB;
USE EmployeeDB;
CREATE TABLE Employees (
ID INT IDENTITY(1,1) PRIMARY KEY,
Name NVARCHAR(100) NOT NULL,
Salary FLOAT NOT NULL,
Gender INT NOT NULL,
Age INT NOT NULL
);
```
## 3. Verify the Connection String
In Program.cs, the connection string is set as follows:
```csharp
string connectionString = "Server=.\\SQLEXPRESS;Database=EmployeeDB;Trusted_Connection=True;";
```
If your SQL Server instance or authentication method differs, update the connection string accordingly.