{"id":23863361,"url":"https://github.com/saeedmosaffer/schoolmanagementsystem_saeedmosaffer","last_synced_at":"2026-06-17T18:06:00.970Z","repository":{"id":269174833,"uuid":"902958167","full_name":"saeedmosaffer/SchoolManagementSystem_SaeedMosaffer","owner":"saeedmosaffer","description":null,"archived":false,"fork":false,"pushed_at":"2024-12-21T13:31:21.000Z","size":10,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-22T12:30:58.805Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/saeedmosaffer.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:12:38.000Z","updated_at":"2024-12-21T13:31:24.000Z","dependencies_parsed_at":"2024-12-21T14:30:38.579Z","dependency_job_id":"ed8c6da1-bdd5-4cdd-93c2-061da499c6ca","html_url":"https://github.com/saeedmosaffer/SchoolManagementSystem_SaeedMosaffer","commit_stats":null,"previous_names":["saeedmosaffer/schoolmanagementsystem_saeedmosaffer"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/saeedmosaffer/SchoolManagementSystem_SaeedMosaffer","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/saeedmosaffer%2FSchoolManagementSystem_SaeedMosaffer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/saeedmosaffer%2FSchoolManagementSystem_SaeedMosaffer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/saeedmosaffer%2FSchoolManagementSystem_SaeedMosaffer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/saeedmosaffer%2FSchoolManagementSystem_SaeedMosaffer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/saeedmosaffer","download_url":"https://codeload.github.com/saeedmosaffer/SchoolManagementSystem_SaeedMosaffer/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/saeedmosaffer%2FSchoolManagementSystem_SaeedMosaffer/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34459717,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-17T02:00:05.408Z","response_time":127,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":[],"created_at":"2025-01-03T07:58:18.886Z","updated_at":"2026-06-17T18:06:00.954Z","avatar_url":"https://github.com/saeedmosaffer.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# SchoolManagementSystem_SaeedMosaffer\nThe code was done as required with these changes and additions:\nI created an Affiliate class with the common attributes between the student and the teacher\nIn the student class, I added a method to delete the course as well\n\nIn the data structure, I used the following:\nfor students, teachers, and courses im used Dictionary\u003cint, T\u003e\nFor courses associated with students and teachers, im used HashSet\u003cT\u003e to avoid duplicates while maintaining efficient insertion and deletion.\n\nData Structure: Dictionary\u003cTKey, TValue\u003e.\nReason: If you need to find a student, teacher, or course by their Id frequently, a dictionary provides O(1) average lookup time\n\nData Structure: HashSet\u003cT\u003e.\nReason: HashSet\u003cT\u003e if you need to ensure no duplicate entries (e.g., a student can't enroll in the same course twice).\n\nIn the course class, I added two methods, which are as follows:\n\nEquals Method:\nThis method is used to determine equality between two Course objects.\nIt checks if the given object (obj) is a Course and compares their Id values.\nThis ensures that two Course objects are considered equal if they have the same ID, regardless of other properties.\n\nGetHashCode Method:\nThis method generates a hash code for the Course object, which is used in hash-based collections like HashSet and Dictionary.\nThe hash code is derived from the Id property, ensuring that the Id uniquely identifies the object in collections.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsaeedmosaffer%2Fschoolmanagementsystem_saeedmosaffer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsaeedmosaffer%2Fschoolmanagementsystem_saeedmosaffer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsaeedmosaffer%2Fschoolmanagementsystem_saeedmosaffer/lists"}