{"id":22065649,"url":"https://github.com/karenpayneoregon/solutions-from-forums","last_synced_at":"2026-04-07T08:31:48.059Z","repository":{"id":63523679,"uuid":"562613426","full_name":"karenpayneoregon/solutions-from-forums","owner":"karenpayneoregon","description":"Various code samples for C#","archived":false,"fork":false,"pushed_at":"2025-02-13T12:45:18.000Z","size":4611,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-06-21T07:42:32.520Z","etag":null,"topics":["asp-net-core","console-application","csharp-core","ef-core","razor-pages","sqlserver"],"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,"zenodo":null}},"created_at":"2022-11-06T21:39:28.000Z","updated_at":"2025-02-13T12:45:22.000Z","dependencies_parsed_at":"2024-11-30T19:23:25.052Z","dependency_job_id":"02ad4857-cb56-4a0d-972e-283b42487774","html_url":"https://github.com/karenpayneoregon/solutions-from-forums","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/karenpayneoregon/solutions-from-forums","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/karenpayneoregon%2Fsolutions-from-forums","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/karenpayneoregon%2Fsolutions-from-forums/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/karenpayneoregon%2Fsolutions-from-forums/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/karenpayneoregon%2Fsolutions-from-forums/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/karenpayneoregon","download_url":"https://codeload.github.com/karenpayneoregon/solutions-from-forums/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/karenpayneoregon%2Fsolutions-from-forums/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31506562,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-07T03:10:19.677Z","status":"ssl_error","status_checked_at":"2026-04-07T03:10:13.982Z","response_time":105,"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":["asp-net-core","console-application","csharp-core","ef-core","razor-pages","sqlserver"],"created_at":"2024-11-30T19:21:05.618Z","updated_at":"2026-04-07T08:31:48.036Z","avatar_url":"https://github.com/karenpayneoregon.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Code done wrong and how to fix it\n\nThis repository is dedicated to a developer just starting out with Visual Studio on how to write decent code. Many samples come from Karen's twenty plus years helping developers asking questions in online developer forums and by in some cases not responding but make note of these cases.\n\n## .NET Core\n\nCurrently there are console projects using both .NET Core 6 and .NET Core 7 and the .NET Core 7 projects are using NuGet packages for .NET Core 6.\n\n## Project types\n\nConsole and Windows Forms will be dominate project types as they are best to learn from. Why use Windows Forms when there are other project types like MAUI and WPF? Windows Forms when used are glorified console projects in that when performing work a developer can easily see their work and get a better understanding of events, delegates and asynchronous programming.\n\nWhat about web projects? There will be web projects included from time to time when appropriate.\n\n# Working with databases\n\nAll work done with databases will be Microsoft SQL-Server\n\n## Accessing data\n\nMajority of work will be done with Microsoft Entity Framework Core 6 and higher\n\n# Json\n\nMany times `json` will be used either for a quick-n-dirty way to setup data for experimentation along with storing application settings in any project type from console to web.\n\n# NuGet packages\n\nIn most cases popular packages will be used along with packages created by Karen Payne.\n\n\n# Console hello world in color\n\nGreetingsConsoleApp, a console project walks a novice developer through creating a colorful console app with a method to accept a person's name using a [NuGet package](https://www.nuget.org/packages/Spectre.Console/0.45.1-preview.0.28) [Spectre.Console](https://spectreconsole.net/). Instructions are in [HowToCreate.md](GreetingsConsoleApp/HowToCreate.md).\n\n\n# NotesRazorApp and NotesFormApp\n\nNotesRazorApp is a Razor Page project which provides tips on styling with Bootstrap 5 and working with EF Core 6. NotesFormApp project is for setting up a database for NotesRazorApp project.\n\nSee the following [readme](/NotesRazorApp/Article/readme.md) file.\n\n\n\n\n\n\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkarenpayneoregon%2Fsolutions-from-forums","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkarenpayneoregon%2Fsolutions-from-forums","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkarenpayneoregon%2Fsolutions-from-forums/lists"}