{"id":22972625,"url":"https://github.com/hobaama/csharp-app-integrated-with-sql-server","last_synced_at":"2026-04-26T12:32:45.811Z","repository":{"id":267982544,"uuid":"902959689","full_name":"HoBaaMa/CSharp-App-Integrated-With-SQL-Server","owner":"HoBaaMa","description":"Assignment: SQL Server Integration with C# Console Application","archived":false,"fork":false,"pushed_at":"2024-12-13T20:00:17.000Z","size":32,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-02T06:44:11.355Z","etag":null,"topics":["csharp","sql-server"],"latest_commit_sha":null,"homepage":"","language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/HoBaaMa.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-12-13T16:16:22.000Z","updated_at":"2024-12-13T20:00:21.000Z","dependencies_parsed_at":null,"dependency_job_id":"a2c79c4d-e86f-4a50-9d21-4d17e2236a89","html_url":"https://github.com/HoBaaMa/CSharp-App-Integrated-With-SQL-Server","commit_stats":null,"previous_names":["hobaama/csharp-app-integrated-with-sql-server"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HoBaaMa%2FCSharp-App-Integrated-With-SQL-Server","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HoBaaMa%2FCSharp-App-Integrated-With-SQL-Server/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HoBaaMa%2FCSharp-App-Integrated-With-SQL-Server/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HoBaaMa%2FCSharp-App-Integrated-With-SQL-Server/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/HoBaaMa","download_url":"https://codeload.github.com/HoBaaMa/CSharp-App-Integrated-With-SQL-Server/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246769981,"owners_count":20830769,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["csharp","sql-server"],"created_at":"2024-12-14T23:18:10.386Z","updated_at":"2026-04-26T12:32:45.773Z","avatar_url":"https://github.com/HoBaaMa.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Assignment: SQL Server Integration with C# Console Application\n\n## Objective\nThis assignment aims to enhance your understanding of SQL Server concepts such as Stored Procedures, Views, and Functions, and how to integrate them with a C# Console Application using Object-Oriented Programming (OOP) principles, interfaces, and generics.\n\n---\n\n## Requirements\n\n### 1. Database Setup\n- Create a SQL Server database named **StudentManagement**.\n- Add a table named **Students** with the following schema:\n  - `StudentID` (Primary Key, `INT`, Auto Increment)\n  - `FirstName` (`NVARCHAR(50)`)\n  - `LastName` (`NVARCHAR(50)`)\n  - `DateOfBirth` (`DATE`)\n  - `Grade` (`DECIMAL(3, 2)`)\n\n### 2. SQL Components\n#### Stored Procedures:\n- **InsertStudent**: Inserts a new student into the `Students` table.\n- **GetStudentsByGrade**: Retrieves students with a grade greater than a specified value.\n\n#### View:\n- **StudentDetails**: Displays the following:\n  - `StudentID`\n  - `FullName` (concatenation of `FirstName` and `LastName`)\n  - `Grade`\n\n#### Function:\n- **CalculateAge**: Calculates the age of a student based on their `DateOfBirth`.\n\n### 3. C# Console Application\n#### Functionalities:\n1. **Add a New Student**:\n   - Use an interface to define methods for interacting with the database.\n   - Implement these methods in a class.\n   - Use a generic repository pattern for database operations.\n\n2. **View Student Details**:\n   - Call the `StudentDetails` view and display the results.\n\n3. **Filter Students by Grade**:\n   - Call the `GetStudentsByGrade` stored procedure and display the filtered results.\n\n4. **Calculate Age**:\n   - Call the `CalculateAge` function for each student and display their age.\n\n### 4. Object-Oriented Programming (OOP) Principles\n- **Interfaces**: Define database operations.\n- **Classes**: Implement database operations.\n- **Generics**: Create a reusable repository for CRUD operations.\n\n---\n\n## Submission Instructions\n1. Submit the following files:\n   - SQL script to create the database, table, stored procedures, view, and function.\n   - C# Console Application project files.\n\n2. Ensure your code is properly documented with comments.\n\n3. Submit a report explaining the design choices for your application and database.\n\n---\n\n## Deliverables\n1. **Database Script**: SQL file with all database objects.\n2. **C# Code**: Fulfill all assignment requirements using OOP principles.\n3. **Execution**: Ensure the application runs successfully and meets the objectives.\n\n---\n\n## Tools \u0026 Technologies Used:\n\n![C#](https://img.shields.io/badge/C%23-239120?style=for-the-badge\u0026logo=c-sharp\u0026logoColor=white)\n![SQL Server](https://img.shields.io/badge/SQL%20Server-CC2927?style=for-the-badge\u0026logo=microsoft-sql-server\u0026logoColor=white)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhobaama%2Fcsharp-app-integrated-with-sql-server","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhobaama%2Fcsharp-app-integrated-with-sql-server","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhobaama%2Fcsharp-app-integrated-with-sql-server/lists"}