{"id":22065651,"url":"https://github.com/karenpayneoregon/windowsformsmasterdetailwithsqlserver","last_synced_at":"2026-05-09T10:43:34.058Z","repository":{"id":110840728,"uuid":"205215320","full_name":"karenpayneoregon/WindowsFormsMasterDetailWithSqlServer","owner":"karenpayneoregon","description":"Windows forms master details example","archived":false,"fork":false,"pushed_at":"2021-12-02T14:21:44.000Z","size":152,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-01-29T00:29:03.860Z","etag":null,"topics":["database","sql"],"latest_commit_sha":null,"homepage":"","language":"Visual Basic .NET","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":"2019-08-29T17:23:15.000Z","updated_at":"2021-12-02T14:21:48.000Z","dependencies_parsed_at":null,"dependency_job_id":"27418e27-7d60-41c8-987b-2c1bf8b98900","html_url":"https://github.com/karenpayneoregon/WindowsFormsMasterDetailWithSqlServer","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/karenpayneoregon%2FWindowsFormsMasterDetailWithSqlServer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/karenpayneoregon%2FWindowsFormsMasterDetailWithSqlServer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/karenpayneoregon%2FWindowsFormsMasterDetailWithSqlServer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/karenpayneoregon%2FWindowsFormsMasterDetailWithSqlServer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/karenpayneoregon","download_url":"https://codeload.github.com/karenpayneoregon/WindowsFormsMasterDetailWithSqlServer/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245144978,"owners_count":20568056,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["database","sql"],"created_at":"2024-11-30T19:21:05.954Z","updated_at":"2026-05-09T10:43:29.017Z","avatar_url":"https://github.com/karenpayneoregon.png","language":"Visual Basic .NET","funding_links":[],"categories":[],"sub_categories":[],"readme":"### Windows forms Master-detail view with add/edit/delete on SQL-Server\n\nA business application can be created to interact with one database table that is fairly simple to write yet the majority of business applications are written on top of a relational database e.g. a table for customers, a related table for addresses another table for phone numbers, a table for products, orders and order details, vendors to purchase from and shippers to ship orders. \n\nAttempting to write an order based application with less tables is possible yet down the road will eventually develop issues and time to fix issues that could be avoided with a good database design. \n\n## Objective\nShow how to setup relationships between related table for SQL-Server database with basics for adding, updating, deleting records in a Windows form solution using SqlClient data provider.\n\n\u003e The next step is to move to Entity Framework 6 ORM. With Entity Framework 6 relationships are setup when scafolding to normalized database. To get an idea see [the following repository](https://github.com/karenpayneoregon/EntityFrameworkSolutionStructureWindowsForms_VisualBasic).\n\n## Source code  \nBoth VB.NET and C# base projects are presented using class projects for data operations interacting with Windows Form projects.\n\nFor details see [the following TechNet article](https://social.technet.microsoft.com/wiki/contents/articles/53240.windows-forms-master-detail-view-with-addeditdelete-on-sql-server-with-vb-netc.aspx).\n\n![image](assets/figure1.png)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkarenpayneoregon%2Fwindowsformsmasterdetailwithsqlserver","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkarenpayneoregon%2Fwindowsformsmasterdetailwithsqlserver","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkarenpayneoregon%2Fwindowsformsmasterdetailwithsqlserver/lists"}