{"id":22065801,"url":"https://github.com/karenpayneoregon/ef-core-lessons-csharp","last_synced_at":"2026-05-17T17:12:47.184Z","repository":{"id":110840509,"uuid":"384157757","full_name":"karenpayneoregon/ef-core-lessons-csharp","owner":"karenpayneoregon","description":"Lesson on working with EF Core 5 showing both beginner and advance operations with unit testing.","archived":false,"fork":false,"pushed_at":"2021-10-08T19:51:50.000Z","size":2557,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-03T19:34:14.923Z","etag":null,"topics":["base-classes","configuration","csharp","csharp9","efcore5","findall","inmemory-db","interceptors","mocking-framework","unit-testing"],"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/karenpayneoregon.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":"2021-07-08T14:47:51.000Z","updated_at":"2021-10-17T19:35:09.000Z","dependencies_parsed_at":null,"dependency_job_id":"75aeb1e3-453f-4d5c-82ff-46b9085f8531","html_url":"https://github.com/karenpayneoregon/ef-core-lessons-csharp","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/karenpayneoregon/ef-core-lessons-csharp","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/karenpayneoregon%2Fef-core-lessons-csharp","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/karenpayneoregon%2Fef-core-lessons-csharp/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/karenpayneoregon%2Fef-core-lessons-csharp/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/karenpayneoregon%2Fef-core-lessons-csharp/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/karenpayneoregon","download_url":"https://codeload.github.com/karenpayneoregon/ef-core-lessons-csharp/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/karenpayneoregon%2Fef-core-lessons-csharp/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33147342,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-17T09:28:26.183Z","status":"ssl_error","status_checked_at":"2026-05-17T09:27:52.702Z","response_time":107,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6: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":["base-classes","configuration","csharp","csharp9","efcore5","findall","inmemory-db","interceptors","mocking-framework","unit-testing"],"created_at":"2024-11-30T19:22:03.648Z","updated_at":"2026-05-17T17:12:47.166Z","avatar_url":"https://github.com/karenpayneoregon.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# About\n\n![immg](assets/efcore_csharp.png)\n\nThis repository is for teaching using Microsoft Entity Framework Core with a modified version of Microsoft [NorthWind database](https://gist.github.com/karenpayneoregon/40a6e1158ff29819286a39b7f1ed1ae8).\n\nFirst lesson walkthrough building the foundation for\n\n- Reading data with and without related data with EF Core and SQL-Server data provider\n- Using projections\n- Unit testing\n- Various [DbContext](https://docs.microsoft.com/en-us/dotnet/api/microsoft.entityframeworkcore.dbcontext?view=efcore-5.0) configurations\n  - Including [ProxiesExtensions](https://docs.microsoft.com/en-us/dotnet/api/microsoft.entityframeworkcore.proxiesextensions?view=efcore-5.0) \n- Reverse Engineering a database using [EF Power Tools](https://marketplace.visualstudio.com/items?itemName=ErikEJ.EFCorePowerTools)\n- Source control, [GitHub](https://github.com/) in Visual Studio\n\n\n# Sample test methods\n\n```csharp\nnamespace NorthWindCoreUnitTest\n{\n    [TestClass]\n    public partial class CustomersTest : TestBase\n    {\n        [TestMethod]\n        [TestTraits(Trait.EfCoreCustomersSelect)]\n        public void CustomerCount()\n        {\n            using var context = new NorthwindContext();\n            \n            var customers = context.Customers.ToList();\n            Assert.IsTrue(customers.Count == 91);\n        }\n        [TestMethod]\n        [TestTraits(Trait.EfCoreCustomersSelect)]\n        public async Task CustomersProject()\n        {\n            var customers = \n                await CustomersOperations.GetCustomersWithProjectionAsync();\n\n            string firstName = customers\n                .FirstOrDefault(cust =\u003e cust.FirstName == \"Maria\").FirstName;\n            \n            Assert.IsTrue(firstName == \"Maria\");\n        }\n    }\n}\n```\n\n# Future lessons\n\nWill be done in branches in GitHub","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkarenpayneoregon%2Fef-core-lessons-csharp","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkarenpayneoregon%2Fef-core-lessons-csharp","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkarenpayneoregon%2Fef-core-lessons-csharp/lists"}