{"id":22173680,"url":"https://github.com/stefruseva88/ef-core-softuni-db","last_synced_at":"2026-01-22T01:34:29.975Z","repository":{"id":245816482,"uuid":"819295661","full_name":"StefRuseva88/ef-core-softuni-db","owner":"StefRuseva88","description":"Entity Framework Core Configuration","archived":false,"fork":false,"pushed_at":"2024-11-28T17:14:11.000Z","size":64,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-10T20:29:48.369Z","etag":null,"topics":["dotnet-core","entity-framework-core","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":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/StefRuseva88.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}},"created_at":"2024-06-24T08:18:06.000Z","updated_at":"2025-02-06T17:35:00.000Z","dependencies_parsed_at":"2024-06-24T10:35:11.926Z","dependency_job_id":"93e78a1a-8f88-4a64-a16e-10a89fc76cf0","html_url":"https://github.com/StefRuseva88/ef-core-softuni-db","commit_stats":null,"previous_names":["stefruseva88/ef-core-softuni"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/StefRuseva88/ef-core-softuni-db","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/StefRuseva88%2Fef-core-softuni-db","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/StefRuseva88%2Fef-core-softuni-db/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/StefRuseva88%2Fef-core-softuni-db/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/StefRuseva88%2Fef-core-softuni-db/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/StefRuseva88","download_url":"https://codeload.github.com/StefRuseva88/ef-core-softuni-db/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/StefRuseva88%2Fef-core-softuni-db/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28649475,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-22T01:17:37.254Z","status":"ssl_error","status_checked_at":"2026-01-22T01:17:35.564Z","response_time":86,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["dotnet-core","entity-framework-core","sql-server"],"created_at":"2024-12-02T07:34:42.017Z","updated_at":"2026-01-22T01:34:29.958Z","avatar_url":"https://github.com/StefRuseva88.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Entity Framework Core Configuration\n\n[![C#](https://img.shields.io/badge/Made%20with-C%23-239120.svg)](https://learn.microsoft.com/en-us/dotnet/csharp/)\n[![.NET](https://img.shields.io/badge/.NET-5C2D91.svg)](https://dotnet.microsoft.com/)\n[![MS SQL Server](https://img.shields.io/badge/Database-MS%20SQL%20Server-CC2927.svg)](https://www.microsoft.com/en-us/sql-server)\n[![Entity Framework Core](https://img.shields.io/badge/Entity%20Framework-Core-512BD4.svg)](https://github.com/dotnet/efcore)\n\n### This repository contains the project assignments for the **Databases Advanced - Entity Framework** course at SoftUni\n\n## Table of Contents\n\n1. [Import the Database](#1-import-the-database)\n2. [Database First](#2-database-first)\n3. [Fetching Full Information](#3-fetching-full-information)\n4. [Contributing](#contributing)\n5. [License](#license)\n6. [Contact](#contact)\n\n## 1. Import the Database\nThe first step involves setting up the database (in this case, the SoftUni database), which will serve as the foundation for this project.\n\n### Steps:\n1. Open SQL Server Management Studio.\n2. Connect to your local or remote SQL Server instance.\n3. Execute the provided SQL script to create the SoftUni database and populate it with data.\n\n## 2. Database First Approach\nThis project uses the Database First methodology, where the existing database structure is used to generate the application’s data models.\n\n### Steps:\n1. Start by creating a new empty .NET Core Console App in Visual Studio.\n2. Open the Package Manager Console.\n3. Run the following commands to install the required NuGet packages for Entity Framework Core:\n\n   ```sh\n   Install-Package Microsoft.EntityFrameworkCore.Tools –v 6.0.1\n   Install-Package Microsoft.EntityFrameworkCore.SqlServer –v 6.0.1\n   Install-Package Microsoft.EntityFrameworkCore.Design -v 6.0.1\n\n\n4. Ensure your project has a Program class with a static void `Main()` method to serve as the entry point.\n5. Scaffold your database context and entity classes by running this command:\n\n ```sh\nScaffold-DbContext -Connection \"Server=\u003cServerName\u003e;Database=\u003cYourDatabase\u003e;Integrated Security=True;\" -Provider Microsoft.EntityFrameworkCore.SqlServer -OutputDir Data/Models\n ```\n\n- Replace `\u003cServerName\u003e` with the name of your SQL Server instance.\n- replace `YourDatabase` with the name of the database you want to use.\n  \n**Note:** In the connection string, use a single backslash `(\\)` to avoid errors like `InvalidOperationException: Instance failure`.\n\n6. Once the scaffolding is complete, you may need to rename some of the auto-generated classes if they’ve been pluralized incorrectly. You can do this using the Rename option by right-clicking or pressing `F2`.\n\n7. After completing the setup, you can remove any unused packages by running the following commands:\n\n```sh\nUninstall-Package Microsoft.EntityFrameworkCore.Tools -r\nUninstall-Package Microsoft.EntityFrameworkCore.Design -RemoveDependencies\n```\n\n## 3. Fetching Full Information\nIn this task, you will extract and display employee data from the SoftUni database.\n### Steps:\n1. Implement the method `GetEmployeesFullInformation(SoftUniContext context)`, which will return employee details from the database as a formatted string.\n2. Create a class called `StartUp` that will serve as the starting point of your program.\n3. Use the `SoftUniContext` class (generated in the previous step) to interact with the database and retrieve the required data.\n   \nBy utilizing `SoftUniContext`, you can now query and manipulate data from the database.\n\n## License\nThis project is licensed under the [MIT License](LICENSE). See the [LICENSE](LICENSE) file for details.\n\n## Contact\nFor any questions or suggestions, please open an issue in the repository.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstefruseva88%2Fef-core-softuni-db","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fstefruseva88%2Fef-core-softuni-db","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstefruseva88%2Fef-core-softuni-db/lists"}