{"id":29406296,"url":"https://github.com/hemanth-kumar2005/csharp-student-crud-database","last_synced_at":"2026-05-15T22:36:41.081Z","repository":{"id":303776127,"uuid":"1016641719","full_name":"Hemanth-Kumar2005/CSharp-Student-CRUD-Database","owner":"Hemanth-Kumar2005","description":"A simple C# console application demonstrating CRUD (Create, Read, Update, Delete) operations for student records using a SQL Server database. Easily add, view, update, and delete student data through an interactive command-line interface. Ideal for learning basic database operations and ADO.NET in C#.","archived":false,"fork":false,"pushed_at":"2025-07-09T10:17:53.000Z","size":1055,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-07-09T11:26:39.825Z","etag":null,"topics":["csharp","sql-server","sqlite-database"],"latest_commit_sha":null,"homepage":"","language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Hemanth-Kumar2005.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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,"zenodo":null}},"created_at":"2025-07-09T10:02:41.000Z","updated_at":"2025-07-09T10:25:24.000Z","dependencies_parsed_at":"2025-07-09T11:37:13.169Z","dependency_job_id":null,"html_url":"https://github.com/Hemanth-Kumar2005/CSharp-Student-CRUD-Database","commit_stats":null,"previous_names":["hemanth-kumar2005/csharp-student-crud-database"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Hemanth-Kumar2005/CSharp-Student-CRUD-Database","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Hemanth-Kumar2005%2FCSharp-Student-CRUD-Database","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Hemanth-Kumar2005%2FCSharp-Student-CRUD-Database/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Hemanth-Kumar2005%2FCSharp-Student-CRUD-Database/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Hemanth-Kumar2005%2FCSharp-Student-CRUD-Database/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Hemanth-Kumar2005","download_url":"https://codeload.github.com/Hemanth-Kumar2005/CSharp-Student-CRUD-Database/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Hemanth-Kumar2005%2FCSharp-Student-CRUD-Database/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":264686768,"owners_count":23649564,"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","sqlite-database"],"created_at":"2025-07-10T23:19:53.597Z","updated_at":"2026-05-15T22:36:41.051Z","avatar_url":"https://github.com/Hemanth-Kumar2005.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# CSharp Student CRUD Database\n\nA simple C# console application demonstrating CRUD (Create, Read, Update, Delete) operations on a SQL Server database. This project manages student records, allowing you to add, view, update, and delete student data using a SQL database as storage.\n\n## Features\n\n- **Create**: Add new student records with details like name, roll number, age, district, and grade.\n- **Read**: View all student records stored in the database.\n- **Update**: Modify existing student records (update age and grade).\n- **Delete**: Remove student records from the database.\n- **SQL Server Database**: Uses SQL Server for persistent data storage.\n\n## Technologies Used\n\n- **C# (.NET 8.0)**\n- **SQL Server (Local or Remote)**\n- **System.Data.SqlClient** NuGet package\n\n## Database Setup\n\n1. **Create a Database:**\n   - Open SQL Server Management Studio or your preferred SQL client.\n   - Create a database named `CoDB` (or change the connection string in `Database.cs` to match your database name).\n\n2. **Create the Table:**\n   ```sql\n   CREATE TABLE Stud_Details (\n       student_id INT PRIMARY KEY,\n       student_name NVARCHAR(100) NOT NULL,\n       student_roll_no BIGINT NOT NULL,\n       student_age INT NOT NULL,\n       student_district NVARCHAR(100) NOT NULL,\n       student_grade NVARCHAR(10) NOT NULL\n   );\n   ```\n\n3. **(Optional) Insert Sample Data:**\n   ```sql\n   INSERT INTO Stud_Details (student_id, student_name, student_roll_no, student_age, student_district, student_grade)\n   VALUES (1, 'John Doe', 1001, 18, 'Bangalore', 'A');\n   ```\n\n## How to Run\n\n1. **Clone the Repository:**\n   ```sh\n   git clone https://github.com/Hemanth-Kumar2005/CSharp-Student-CRUD-Database.git\n   cd CSharp-Student-CRUD-Database\n   ```\n\n2. **Restore NuGet Packages:**\n   ```sh\n   dotnet restore\n   ```\n\n3. **Build and Run the Application:**\n   ```sh\n   dotnet run\n   ```\n\n4. **Follow the Console Menu:**\n   - Choose options to create, retrieve, update, or delete student records.\n   - The application will prompt for required details and interact with the SQL database.\n\n## Configuration\n\n- The SQL Server connection string is set in `Database.cs`:\n  ```csharp\n  private static readonly string connectionString = @\"Data Source=.;Initial Catalog=CoDB;Integrated Security=True;TrustServerCertificate=True\";\n  ```\n  - If your SQL Server instance is different, update `Data Source` accordingly.\n  - For remote databases, provide the correct server address and authentication.\n\n## Project Structure\n\n- `Program.cs` — Entry point, handles user menu and main loop.\n- `Database.cs` — Provides SQL Server connection logic.\n- `StudentManager.cs` — Contains CRUD operations for student records.\n- `CRUD Application.csproj` — Project file with dependencies.\n\n## Example\n\n```sh\nSelect an option:\n1. Create\n2. Retrieve\n3. Update\n4. Delete\n```\n\n## License\n\nThis project is licensed under the MIT License. See [LICENSE](LICENSE) for details.\n\n## Author\n\n- [Hemanth Kumar](https://github.com/Hemanth-Kumar2005)\n\n## Contributions\n\nFeel free to fork this repo, open issues, or submit pull requests for improvements or bug fixes!\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhemanth-kumar2005%2Fcsharp-student-crud-database","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhemanth-kumar2005%2Fcsharp-student-crud-database","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhemanth-kumar2005%2Fcsharp-student-crud-database/lists"}