{"id":20605105,"url":"https://github.com/arnab-developer/ef-inheritance","last_synced_at":"2026-05-26T20:32:03.996Z","repository":{"id":239719409,"uuid":"800345970","full_name":"Arnab-Developer/EF-Inheritance","owner":"Arnab-Developer","description":"Default, TPT and TPC demo","archived":false,"fork":false,"pushed_at":"2024-06-12T03:10:41.000Z","size":59,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-06T16:54:21.080Z","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":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Arnab-Developer.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","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-05-14T06:50:46.000Z","updated_at":"2024-05-15T01:45:18.000Z","dependencies_parsed_at":null,"dependency_job_id":"28a8677c-466c-4f74-b890-8c6b2c47a18e","html_url":"https://github.com/Arnab-Developer/EF-Inheritance","commit_stats":null,"previous_names":["arnab-developer/ef-inheritance"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Arnab-Developer/EF-Inheritance","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Arnab-Developer%2FEF-Inheritance","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Arnab-Developer%2FEF-Inheritance/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Arnab-Developer%2FEF-Inheritance/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Arnab-Developer%2FEF-Inheritance/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Arnab-Developer","download_url":"https://codeload.github.com/Arnab-Developer/EF-Inheritance/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Arnab-Developer%2FEF-Inheritance/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33538659,"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":"ssl_error","status_checked_at":"2026-05-26T15:22:15.568Z","response_time":63,"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":[],"created_at":"2024-11-16T09:26:31.379Z","updated_at":"2026-05-26T20:32:03.981Z","avatar_url":"https://github.com/Arnab-Developer.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# EF Inheritance\n\nModel inheritence (default, TPT, TPC) with Entity Framework demo. \n\nThis is a demo app to show how model inheritence works with Entity Framework. There are \nthree ways of how EF manages inheritence. First is `table per hierarchy` which is the default, \nthe second is `table per type` and the third is `table per concrete type`.\n\nI have used a simple model structure for this demo `Animal`, `Cat` and `Dog`.\n\n![Class diagram](assets/class-diagram.png)\n\nThere are three EF contexts and migration folders for the three ways. You can check the migrations to\nunderstand how tables are structured for the three ways.\n\nYou can find more details in the [EF documentation](https://learn.microsoft.com/en-us/ef/core/modeling/inheritance).","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Farnab-developer%2Fef-inheritance","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Farnab-developer%2Fef-inheritance","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Farnab-developer%2Fef-inheritance/lists"}