{"id":19029095,"url":"https://github.com/sulmar/usuconcept-zus-efcore8","last_synced_at":"2026-05-15T17:41:53.867Z","repository":{"id":216632398,"uuid":"741111472","full_name":"sulmar/usuconcept-zus-efcore8","owner":"sulmar","description":"Przykłady ze szkolenia Entity Framework Core 8","archived":false,"fork":false,"pushed_at":"2024-01-16T11:40:44.000Z","size":1041,"stargazers_count":0,"open_issues_count":2,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-21T19:46:35.215Z","etag":null,"topics":["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":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/sulmar.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-01-09T18:07:39.000Z","updated_at":"2024-01-11T07:44:38.000Z","dependencies_parsed_at":"2024-11-08T21:13:18.112Z","dependency_job_id":"f9e1792b-86a9-4224-98f3-08fe1d06ead4","html_url":"https://github.com/sulmar/usuconcept-zus-efcore8","commit_stats":null,"previous_names":["sulmar/usuconcept-zus-efcore8"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/sulmar/usuconcept-zus-efcore8","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sulmar%2Fusuconcept-zus-efcore8","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sulmar%2Fusuconcept-zus-efcore8/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sulmar%2Fusuconcept-zus-efcore8/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sulmar%2Fusuconcept-zus-efcore8/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sulmar","download_url":"https://codeload.github.com/sulmar/usuconcept-zus-efcore8/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sulmar%2Fusuconcept-zus-efcore8/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33073455,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-15T11:35:32.926Z","status":"ssl_error","status_checked_at":"2026-05-15T11:35:31.362Z","response_time":103,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: 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":["entity-framework-core","sql-server"],"created_at":"2024-11-08T21:13:15.346Z","updated_at":"2026-05-15T17:41:53.849Z","avatar_url":"https://github.com/sulmar.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Przykłady ze szkolenia Entity Framework Core 8\n\n## Wprowadzenie\n\nWitaj w repozytorium z materiałami do szkolenia **Entity Framework Core 8**.\n\nDo rozpoczęcia tego kursu potrzebujesz następujących rzeczy:\n\n1. [.NET 8 SDK](https://dotnet.microsoft.com/en-us/download/dotnet/8.0).\n\n2. Sklonuj repozytorium Git\n\n```bash\ngit clone https://github.com/sulmar/usuconcept-zus-efcore8\n```\n\n3. Utwórz bazę danych\n\n```bash\nsqlcmd -S (localdb)\\MSSQLLocalDB -d master -E -i sql-server-sakila-schema.sql\n```\n\n4. Załadowuj przykładowane dane\n\n```bash\nsqlcmd -S (localdb)\\MSSQLLocalDB -d sakila -E -i sql-server-sakila-insert-data.sql\n```\n\n## Podstawy\n\n### Komendy CLI\n\n#### Środowisko\n- ``` dotnet --version ``` - wyświetlenie aktualnie używanej wersji SDK\n- ``` dotnet --list-sdks ``` - wyświetlenie listy zainstalowanych SDK\n- ``` dotnet new globaljson ``` - utworzenie pliku _global.json_\n- ``` dotnet new globaljson --sdk-version {version} ``` - utworzenie pliku _global.json_ i ustawienie wersji SDK\n- ``` dotnet new gitignore ``` - utworzenie pliku _.gitignore_\n\n#### Rozwiązanie\n- ``` dotnet new sln ``` - utworzenie nowego rozwiązania\n- ``` dotnet new sln --name {name} ``` - utworzenie nowego rozwiązania o określonej nazwie\n- ``` dotnet sln add {folder}``` - dodanie projektu z folderu do rozwiązania\n- ``` dotnet sln remove {folder}``` - usunięcie projektu z folderu z rozwiązania\n- ``` dotnet sln add {project.csproj}``` - dodanie projektu do rozwiązania\n- ``` dotnet sln remove {project.csproj}``` - usunięcie projektu z rozwiązania\n\n#### Projekt\n- ``` dotnet new --list ``` - wyświetlenie listy dostępnych szablonów\n- ``` dotnet new {template} ``` - utworzenie nowego projektu na podstawie wybranego szablonu, np. console, web\n- ``` dotnet new {template} -o {output} ``` - utworzenie nowego projektu w podanym katalogu\n- ``` dotnet restore ``` - pobranie pakietów nuget powiązanych z projektem\n- ``` dotnet build ``` - kompilacja projektu\n- ``` dotnet run ``` - uruchomienie projektu\n- ``` dotnet watch run ``` - uruchomienie projektu w trybie śledzenia zmian\n- ``` dotnet run {app.dll}``` - uruchomienie aplikacji\n- ``` dotnet test ``` - uruchomienie testów jednostkowych\n- ``` dotnet watch test ``` - uruchomienie testów jednostkowych w trybie śledzenia zmian\n- ``` dotnet add {project.csproj} reference {library.csproj} ``` - dodanie odwołania do biblioteki\n- ``` dotnet remove {project.csproj} reference {library.csproj} ``` - usunięcie odwołania do biblioteki\n- ``` dotnet clean ``` - wyczyszczenie wyniku kompilacji, czyli zawartości folderu pośredniego _obj_ oraz folderu końcowego _bin_\n\n#### Pakiety\n- ``` dotnet add package {package name}``` - dodanie pakietu do projektu\n- ``` dotnet list package ``` - wyświetlenie listy pakietów\n- ``` dotnet remove package {package name}``` - usunięcie pakietu z projektu\n\n#### Entity Framework Core\n- ``` dotnet ef ``` - weryfikacja instalacji\n- ``` dotnet ef migrations add {migration} ``` - dodanie migracji\n- ``` dotnet ef migrations remove ``` - usunięcie ostatniej migracji\n- ``` dotnet ef migrations list ``` - wyświetlenie listy wszystkich migracji\n- ``` dotnet ef migrations script ``` - wygenerowanie skryptu do aktualizacji bazy danych do najnowszej wersji\n- ``` dotnet ef database update ``` - aktualizacja bazy danych do najnowszej wersji\n- ``` dotnet ef database update -verbose ``` - aktualizacja bazy danych do najnowszej wersji i wyświetlanie logu\n- ``` dotnet ef database update {migration} ``` - aktualizacja bazy danych do podanej migracji\n- ``` dotnet ef database drop ``` - usunięcie bazy danych\n- ``` dotnet ef dbcontext info ``` - wyświetlenie informacji o DbContext (provider, nazwa bazy danych, źródło)\n- ``` dotnet ef dbcontext list ``` - wyświetlenie listy DbContextów\n- ``` dotnet ef dbcontext scaffold {connectionstring} Microsoft.EntityFrameworkCore.SqlServer -o Models ``` - wygenerowanie modelu na podstawie bazy danych\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsulmar%2Fusuconcept-zus-efcore8","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsulmar%2Fusuconcept-zus-efcore8","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsulmar%2Fusuconcept-zus-efcore8/lists"}