{"id":24129363,"url":"https://github.com/pawelgerr/entityframeworkcore-demos","last_synced_at":"2026-04-01T21:50:34.023Z","repository":{"id":101035251,"uuid":"129359764","full_name":"PawelGerr/EntityFrameworkCore-Demos","owner":"PawelGerr","description":null,"archived":false,"fork":false,"pushed_at":"2019-12-23T15:20:15.000Z","size":100,"stargazers_count":34,"open_issues_count":2,"forks_count":12,"subscribers_count":6,"default_branch":"master","last_synced_at":"2026-03-27T23:42:00.707Z","etag":null,"topics":["dotnet-core","entity-framework-core","performance","tph","tpt"],"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/PawelGerr.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":"2018-04-13T06:39:13.000Z","updated_at":"2026-02-23T19:16:04.000Z","dependencies_parsed_at":null,"dependency_job_id":"58e777e9-2ae5-472b-8f22-23aaed5e080d","html_url":"https://github.com/PawelGerr/EntityFrameworkCore-Demos","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/PawelGerr/EntityFrameworkCore-Demos","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PawelGerr%2FEntityFrameworkCore-Demos","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PawelGerr%2FEntityFrameworkCore-Demos/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PawelGerr%2FEntityFrameworkCore-Demos/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PawelGerr%2FEntityFrameworkCore-Demos/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/PawelGerr","download_url":"https://codeload.github.com/PawelGerr/EntityFrameworkCore-Demos/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PawelGerr%2FEntityFrameworkCore-Demos/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31292572,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-01T21:15:39.731Z","status":"ssl_error","status_checked_at":"2026-04-01T21:15:34.046Z","response_time":53,"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","performance","tph","tpt"],"created_at":"2025-01-11T19:31:31.453Z","updated_at":"2026-04-01T21:50:33.991Z","avatar_url":"https://github.com/PawelGerr.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Demos for blog posts abount Entity Framework Core\n\n## N+1 Queries Problem\nSee the method `ExecuteDemoDbQueries` in `Program.cs`\n\nBlog posts:\n* [Entity Framework Core Performance: Beware of N+1 Queries](http://weblogs.thinktecture.com/pawel/2018/04/entity-framework-core-performance-beware-of-n1-queries.html)\n* [Entity Framework Core 2.1 Performance: Beware of N+1 Queries (Revisited)](http://weblogs.thinktecture.com/pawel/2018/05/entity-framework-core-21-performance-beware-of-n1-queries.html)\n\n## Inheritance\n\nBlog posts:\n* [Entity Framework Core: Inheritance - Table-per-Type (TPT) is not supported, is it? (Part 1 - Code First)](http://weblogs.thinktecture.com/pawel/2018/05/entity-framework-core-inheritance-tpt-is-not-supported-is-it-part-1-code-first.html)\n* [Entity Framework Core: Inheritance - Table-per-Type (TPT) is not supported, is it? (Part 2 - Database First)](http://weblogs.thinktecture.com/pawel/2018/05/entity-framework-core-inheritance-table-per-type-tpt-is-not-supported-is-it-part-2-database-first.html)\n\n### Table-Per-Hierarchy (TPH)\n**Code First**: see the method `ExecuteTphQueries` in `Program.cs` and the file in `/src/EntityFramework.Demo/TphModel/CodeFirst`\n\n### Table-Per-Type (TPT)\n**Code First**: see the method `ExecuteTptQueries` in `Program.cs` and the file in `/src/EntityFramework.Demo/TptModel/CodeFirst`\n\n## Changing Schema at Runtime\nSee the method `ExecuteSchemaChangeQueries` in `Program.cs`\n\nBlog posts:\n* [Entity Framework Core: Changing Database Schema at Runtime](http://weblogs.thinktecture.com/pawel/2018/06/entity-framework-core-changing-database-schema-at-runtime.html )\n* [Entity Framework Core: Changing DB Migration Schema at Runtime](http://weblogs.thinktecture.com/pawel/2018/06/entity-framework-core-changing-db-migration-schema-at-runtime.html)\n\n## Issues with TransactionScopes\nSee the method `ExecuteTransactionScopeDemosAsync` in `Program.cs`\n\nBlog posts: [Entity Framework Core: Use TransactionScope with Caution!](http://weblogs.thinktecture.com/pawel/2018/06/entity-framework-core-use-transactionscope-with-caution.html)\n\n## Integration Testing\nSee code inside folder `IntegrationTests`\n\nBlog posts: [Entity Framework Core: Isolation of Integration Tests](http://weblogs.thinktecture.com/pawel/2018/06/entity-framework-core-isolation-of-integration-tests.html)\n\n## Issues with RowVersion/Timestamp and NumberToBytesConverter\nSee method `ExecuteRowVersionConversionDemos` in `Program.cs`\n\nDoing a LEFT JOIN with entities having a `RowVersion` on the right side may throw if using `NumberToBytesConverter\u003cT\u003e`.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpawelgerr%2Fentityframeworkcore-demos","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpawelgerr%2Fentityframeworkcore-demos","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpawelgerr%2Fentityframeworkcore-demos/lists"}